according to what i read there are 2 ways of solve this problem :
var x = 3;
y = x++; // y = 3, x = 4
var a = 2;
b = ++a; // a = 3, b = 3
This was my code before reading the post :
myVar++; (because the challenge asked me to change the following:
myVar = myVar +1 ; )
I was trying and trying to solve that part without sucess and then i read a post of november 2018
and i used the alternative Prefix and it worked but i don´t know when i should use the alternative
postfix and the alternative prefix.
Now my code which is working good is the following
var myVar = 87;
Could anyone please explain me which is the difference between using a postfix alternative and a prefix alternative? and in which cases i can use it?
I will appreciate your kind help