var myVar = 87;
myVar == myVar + 1 ;
this is code but i need to change increment operator ++ then i changed it showing like error
myVar ++; i did
myVar == myVar + 1; but it showing error like you should change the code
if i change it showing like answer should be 88.
You don’t need to do use == or = operator in this challenge. You just simply need to use the increment operator as mentioned in the challenge.
Note that myVar = myVar + 1; is exactly same as doing myVar++;
On a different note: == and = are two different operator. == is a loose equality operator (checks value and datatype of the operands) whereas = is an assignment operator. Example: a = b, so value of b variable is assigned to variable a.