Increment a Number with JavaScript has a misleading test case
See original GitHub issueChallenge Increment a Number with JavaScript has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var myVar = 87;
// Only change code below this line
myVar++;
myVar = myVar;
myVar = myVar + 0;
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Something wrong with challenge --> Increment a Number ...
It really helps to post your actual code and a link to the challenge instead of a picture. I think this bug has...
Read more >Loops in JavaScript - performing repeated operations on a ...
The increment operator ( ++ ) increments its operand by 1 ; that is, it adds 1 to the existing value. There's a...
Read more >Why avoid increment ("++") and decrement ("--") operators ...
The ++ (increment) and -- (decrement) operators have been known to contribute to bad code by encouraging excessive trickiness. They are second ...
Read more >Increment (++) - JavaScript - MDN Web Docs - Mozilla
The increment ( ++ ) operator increments (adds one to) its operand and returns the value before or after the increment, depending on...
Read more >The 10 Most Common JavaScript Issues Developers Face
But there are cases where this can be as confusing as it is convenient. Some of the following, for example, have been known...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi can I try to do this?
Whoops - accidentally clicked the assign button!