0 points

Swapping numbers without using temp Variable. ( Destructuring assignment )


dashboard

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

Posted by @jpannu

let num1 = 10, num2 = 20;
[num1, num2] = [num2, num1];
content_copy Copy