4 ms·
Example when a semicolon is required in non-minimized javascript. alert(1) // add semi-colon here to make this code work (function(){alert(2)})()
by meric 15y ago
Example when a semicolon is required in non-minimized javascript.
alert(1) // add semi-colon here to make this code work
(function(){alert(2)})()
- joedevon 15y agoSomeone should write a tool that automatically inserts that comment instead of a semicolon. LOL
- insin 15y agoThere are other options here too but, given the OP, people seem to get irate when you use the features the language specification guarantees :'/ alert(1) void function(){alert(2)}()
- meric 15y agoNice, didn't know void can be prepended to a function definition.