Well, there's a problem with implied semicolons.
return {
a: 1,
b: 2
}
Some people like opening brackets on its own line, like this:
return
{
a: 1,
b: 2
}
However, this last statement will return undefined
, since the parser sees:
return;
{
a: 1,
b: 2
}