by benihana · 11y ago · 0 comments
Here's an even easier and clearer one: finish every statement with a semicolon.
function hello() {
var x = 0;
return
{
x: x,
y: y
};
};
Just putting semicolons where you think it can work won't help you. If you write javascript, you must know what the asi does. So semicolons or no semicolons is completely irrelevant.