Consider the following three lines of Javascript.
console.log(1); --> console.log(2); console.log(3); I would expect it to cause a Syntax Error, probably something like Unexpected token --.
Instead, browsers seem to accept the code, and simply ignore the second line, producing the output:
› 1 › 3 I've tried pasting the snippet into the consoles of Chrome, Safari and Firefox. All of them behave the same way. What's going on?
node index.js)