why in javascript without a semicolon still works?
<p>how come in javascript you can call a function without ;</p>

<p>example</p>

<p>lets say testMethod is declared somewhere....</p>

<pre><code>testMethod();

testMethod() // without semicolon will still work.
</code></pre>

<p>also calling a method within an element
example</p>

<pre><code>&lt;input type="button" onclick="testMethod();" /&gt;
&lt;input type="button" onclick="testMethod()" /&gt; // again no semicolon.
</code></pre>
