5 ms·
Javascript has "semicolon insertion". It tries to parse a newline with no semicolon as continuing the current expression, if it can't, it inserts a semicolon.
by d4n3 12y ago
Javascript has "semicolon insertion".
It tries to parse a newline with no semicolon as continuing the current expression, if it can't, it inserts a semicolon.
It's a 'feature' that's caused too many bugs and is a warning in most linters.