3 ms·
Correct me if I'm wrong, but the only case you have to worry about is having "return" on the same line as the thing you want to return. And you have that proble
by __david__ 11y ago
Correct me if I'm wrong, but the only case you have to worry about is having "return" on the same line as the thing you want to return. And you have that problem whether or not you use semicolons in the rest of your code.
- k__ 11y agoThe blog post mentions, that starting a line with [ or ( can be dangerous too. But till hat example I didn't even know why this would make sense in the first place. I only use excessive parenthesis for math and store arrays, like the example, in constants that describe their purpose, so I guess I dodged a bullet there :)