Changes

Jump to: navigation, search

Comments in JavaScript

2 bytes removed, 14:41, 12 November 2009
no edit summary
== Single Line Comments ==
The mechanism for a single line comment borrows from the C++ and Java languages by prefixed prefixing the line with //. For example:
<pre>
</pre>
The // syntax tells the interpreter that everything on the same line following on from the // is a comment and should be ignored. This means that anything on the line before the // comment marker it is ''not'' ignored. The advantage of this is that it enables comments to be placed at the end of a line of scripting. For example:
<pre>

Navigation menu