Contact: aviboots(AT)netvision.net.il
40,764 questions
53,140 answers
573 users
let x : number = 8; let y : number = 15; console.log("x = " + x + " y = " + y); [x, y] = [y, x]; console.log("x = " + x + " y = " + y); /* run: "x = 8 y = 15" "x = 15 y = 8" */