I am trying to write a very simple script but do not understand why one syntax isn't working over the other.
The function is to simply increment any number by one.
This one does not work
function plusOne(x) {
return x++;
}
but this one does.
function plusOne(x) {
return x + 1;
}
What am I not understanding??