Swapping numbers without using temp Variable. ( Destructuring assignment )

PHOTO EMBED

Mon Nov 23 2020 18:24:44 GMT+0000 (UTC)

Saved by @jpannu

let num1 = 10, num2 = 20;
[num1, num2] = [num2, num1];
content_copyCOPY