This is strange. This is what happens on the JavaScript console in Chrome (version 42.0.2311.135, 64-bit).
> 0 < 0 > 00 < 0 > 0.0 < 0 > 00.0 X Uncaught > SyntaxError: Unexpected number
Firefox 37.0.2 does the same, although its error message is:
SyntaxError: missing ; before statement
There are probably some technical explanations regarding how JavaScript parses numbers, and perhaps this can only happen when manipulating the console prompt, but it still seems wrong.
Why is he doing this?
javascript numbers syntax-error
Chris Dennis May 21 '15 at 8:54 2015-05-21 08:54
source share