Contact: aviboots(AT)netvision.net.il
41,636 questions
54,299 answers
573 users
let x = 5; const y = x--; console.log(`x = ${x}, y = ${y}`); /* run: "x = 4, y = 5" */
let x = 5; const y = --x; console.log(`x = ${x}, y = ${y}`); /* run: "x = 4, y = 4" */