I have never writen vanilla js before and today I saw some code. There was a JavaScript file that started with:
(function ($) {...})
and they had written all the code inside this function. What is the purpose of this usage? And what is the name of this usage?