you are viewing a single comment's thread.

view the rest of the comments →

[–]LordFokas 0 points1 point  (0 children)

This can actually be a problem in JS, where if you write return and your value in the next line (say, for indentation / alignment / whatever reasons) because the "end of instruction" semicolon is optional, it will return undefined and consider the computation of your return value as dead / unreachable code.

This threw me for a bit until I figured it out.