2

I saw a lot of (well written and useful) scripts that were beginning with the ";" character at the very beginning of the script. For example in dropzone.js:

;
(function () {

//script's code here

});

Also, I saw this in other libraries/scripts too. I know what the (function(){}) does but is there a meaning by putting the ";" there?

Chris Laplante
  • 28,754
  • 17
  • 99
  • 133
eAbi
  • 2,949
  • 4
  • 23
  • 39

0 Answers0