DEV Community

Discussion on: How can you swap two variables without using a third?

Collapse
 
justingolden21 profile image
Justin Golden

x,y = y,x;

Syntaxic sugar :)