Answers for "swap two numbers without temp in javascript"

1

swap two numbers without temp in javascript

let a = 5, b = 6;
[a, b] = [b, a];

// Destructuring Assignment Array Matching
Posted by: Guest on October-24-2021

Code answers related to "swap two numbers without temp in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language