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.
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.
No comments yet.