JSFiddle - React, Tailwind, and code Playground
by JamesD
JavaScript
x=1; // x === 1
x++; // x === 2
console.log("x", x);
x=1; // x === 1
y=x++; // x === 2, y === 1
console.log("x", x, "y", y);
x=1; // x === 1
y=++x; // x === 2, y === 2
console.log("x", x, "y", y);