DEV Community

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

Collapse
 
jperasmus profile image
JP Erasmus

let [x, y] = [y, x]