If you write Javascript that looks like this:
function x()
{
return
something() + somethingElse();
}
The function will return an undefined result. Why? Because semicolons are optional in Javascript. It sees the newline after the RETURN and thinks that it has found the end of the statement. The following expression apparently is parsed as a valid statement, so the compiler doesn't complain.