var id = id++;
console.log(id);
I just wonder why this isn't work? I put it inside a function, I was expecting it start from 2, and then increment 1 by 1. But in the console what I see is NaN. Why?
var id = id++;
console.log(id);
I just wonder why this isn't work? I put it inside a function, I was expecting it start from 2, and then increment 1 by 1. But in the console what I see is NaN. Why?