Unknown symbol javascript

5

I am learning javascript and downloaded the Olw Carousel and I went to see the js and at the beginning of the script there is this excerpt ;(function($, window, document, undefined) What intrigued me was this point and comma in the beginning, I would like to know what it represents at the beginning . Thanks

    
asked by anonymous 03.01.2017 / 09:47

1 answer

5

This ; is a save if this script is mixed with others.

If you have eg badly formatted code that does not end with ; and if you join both codes without a line break the browser can interpret as the same code and generate errors.

    
03.01.2017 / 10:57