Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 106 Bytes

swap_variables.md

File metadata and controls

13 lines (11 loc) · 106 Bytes

Swap variables

let x = 0;
let y = 1;

[x, y] = [y, x];
x = x + y
y = x - y
x = x - y