This is called a comment:
2
It is equal to:
2
Because everything after and including // ignored (to the next line). JavaScript also has this awful feature in which it automatically inserts semicolons before newlines so that the code does not interrupt when you do something like this:
var x = 2
BTW: Use a text editor with syntax highlighting.
user142019
source share