Giang Phạm
New member
How do you put comments in a script?
Answer
To create a single line comment in JavaScript, you
place two slashes “//” in front of the code or text you wish to have the JavaScript interpreter ignore. When you place these two slashes, all text to the right of them will be ignored, until the next line.
Answer
To create a single line comment in JavaScript, you
place two slashes “//” in front of the code or text you wish to have the JavaScript interpreter ignore. When you place these two slashes, all text to the right of them will be ignored, until the next line.