How come in JavaScript you can call a function without ;
?
Example
Let’s say testMethod is declared somewhere...
testMethod();
testMethod() // Without semicolon will still work.
Also calling a method within an element example:
<input type="button" onclick="testMethod();" />
<input type="button" onclick="testMethod()" /> // Again no semicolon.