Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Challenge Increment a Number with JavaScript has an issue. #9899

Closed
Fendysutji opened this issue Jul 26, 2016 · 3 comments
Closed

Challenge Increment a Number with JavaScript has an issue. #9899

Fendysutji opened this issue Jul 26, 2016 · 3 comments

Comments

@Fendysutji
Copy link

Fendysutji commented Jul 26, 2016

bug on increment test
Challenge Increment a Number with JavaScript has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36.
The Result Should 88 but it appear to be 87 ,Can see on the screenshots

My code:

var myVar = 87;

// Only change code below this line
myVar = myVar++ ;
@BKinahan
Copy link
Contributor

Thanks for reporting, but your code is incorrect. Take another look at the instructions and if you're still stuck, please seek assistance in the Help Chat.

Happy coding!

@Fendysutji
Copy link
Author

oh sorry for the false report issue but already find my false and correct it
increment

@ArmantHitchcock
Copy link

Hi can someone please explain how: myVar = myVar should be changed
means: that i should create a new variable "myVar1"
myVar1 = ++myVar;

Would it not be better to give the instruction of:
Now create a new variable myVar1 and assign the incremented myVar to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants