Why is increment operator not accepted here?

Why am I getting an error on using fixedValue++ rather than fixedValue + 1 ?

  **Your code so far**

// The global variable
let fixedValue = 4;

function incrementer() {
// Only change code below this line

  return fixedValue++ ;
// Only change code above this line
}

You are running into the difference between pre and post incrementing

1 Like

Yeah , i get it now, thanks !! @JeremyLT