Changes

Jump to: navigation, search

Comments in JavaScript

4 bytes removed, 14:14, 30 May 2007
Single Line Comments
</pre>
The // syntax tells the intepreter that everything on the same line following on from the // is a comment and should be ignored. This means that anything on the the line before the // comment marker it is ''not'' ignored. The advantage of this is that it enables comments to placed at the end of a line of scripting. For example:
<pre>

Navigation menu