どうしてJavaScriptで関数を呼び出せないの;
ですか?
例
testMethodがどこかで宣言されているとしましょう...
testMethod();
testMethod() // Without semicolon will still work.
また、要素の例内でメソッドを呼び出します。
<input type="button" onclick="testMethod();" />
<input type="button" onclick="testMethod()" /> // Again no semicolon.