You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Swap values before ES6// BAD because you need temp variable z to hold x valueletx=5,y=7;// x = 5, y = 7;letz=x;// z = 5x=y;// x = 7y=z;// y = 5// ES6 wayletx=5,y=7;[x,y]=[y,x];// x = 7, y = 5```