Hi all,
anyone can explain me why when using incrementor in the code below I still get the fixed value, but when using aditional operator it increases the variable:
let fixedValue = 4;
function incrementer() {
return fixedValue++;
}
//output: 4;
let fixedValue = 4;
function incrementer() {
return fixedValue + 1;
}
//output: 5;