r/programming • u/yangzhou1993 • Aug 02 '23
9 JavaScript Tricks That Make Your Code Fantastic
https://medium.com/techtofreedom/9-javascript-tricks-that-make-your-code-fantastic-4cf3d7880229
0
Upvotes
1
0
Aug 02 '23
[deleted]
1
1
u/dukeflowers Aug 02 '23
Definitely! Programming like we’re back in 1960. Seriously, for any juniors reading this, goto’s, labels, loop breaks, etc are all terrible ideas, especially in JS. You don’t need them. Obligatory XKCD https://xkcd.com/292
The reasons why are very well documented, the arguments have been had. Google ‘goto bad’ for more info. Article is trash
3
u/Rudy69 Aug 03 '23
https://archive.ph/057HC
Fuck medium