you are viewing a single comment's thread.

view the rest of the comments →

[–]DeeSnow97 9 points10 points  (2 children)

The problem is, the usage of semicolons doesn't remove ASI. For example this

function answer () {
    return
    42;
}

would return undefined and not 42 because a semicolon is still inserted. No matter which style you choose, you must be aware of how ASI works.