loading...

re: Terrible interview question: Swap variables without a temporary VIEW POST

FULL DISCUSSION
 

With Javascript it's easy!

let a = 5;
let b = 6;

[a, b] = [b, a]

code of conduct - report abuse