JavaScript shorthand tips and tricks that will save your time | by Amitav Mishra | JavaScript in Plain English

PHOTO EMBED

Fri May 13 2022 15:14:31 GMT+0000 (Coordinated Universal Time)

Saved by @dryadmedia

//Longhand 
let a, b, c; 
a = 5; 
b = 8; 
c = 12;
 
//Shorthand 
let [a, b, c] = [5, 8, 12];
content_copyCOPY

https://javascript.plainenglish.io/20-javascript-shorthand-techniques-that-will-save-your-time-f1671aab405f