question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Increment a Number with JavaScript has a misleading test case

See original GitHub issue

Challenge 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:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
AngShiYacommented, Jan 18, 2017

Hi can I try to do this?

1reaction
no-stack-dub-sackcommented, Jan 18, 2017

Whoops - accidentally clicked the assign button!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found