Re:Oddities about JavaScript
by JeremyBanks on Monday May 30, 2011 @10:22AM
(#2599451)
This Python
returns None.
[ Parent
| on HN ]
That's because in Python the line break is the statement terminator.
Re:Oddities about JavaScript
by JeremyBanks on Monday May 30, 2011 @01:15PM
(#2599893)
Python and JavaScript both accept semicolons or line breaks to terminate statements. JavaScript's syntax problems are a bit more subtle than just that.