When i read javascript file it has tow ";" sometimes,like:
(function($, undefined) {
;;
var defaults = {
..........
what that meaning?
When i read javascript file it has tow ";" sometimes,like:
(function($, undefined) {
;;
var defaults = {
..........
what that meaning?
That's just a null statement (known as an "empty statement" by the ECMAScript standard). This works as well:
;;;;;;;;;;;;;;;;;;;;;;;;;;alert('lots of semicolons');;;;;;;;;;;;;;;;;;;
It doesn't mean anything.
It doesn't mean anything special. The second semicolon is just an empty statement and you could safely remove it if you wanted.
It is probably a typo. It is not necessary.
Here is a link to semicolons in JavaScript that you might find helpful.
http://www.codecademy.com/blog/78-your-guide-to-semicolons-in-javascript