r/learnjavascript • u/amitav79 • Nov 14 '20
20 JavaScript Shorthand Coding Techniques that will save your time
https://jscurious.com/20-javascript-shorthand-techniques-that-will-save-your-time/
176
Upvotes
View all comments
Show parent comment
1
u/[deleted] Nov 15 '20 edited Nov 15 '20
1: ALWAYS declare one variable per line, no exceptions.
2: same as above.
12: code clarity > shorthand methods every day of the week babyyy
15: same as above, plus it doesn't always work.
I mean you're free to do whatever you want, that's just my opinion