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
  • 29,338
  • 17
  • 103
  • 134
eAbi
  • 3,220
  • 4
  • 25
  • 39

0 Answers0