If you have a question about a specific challenge as it relates to your written code for that challenge, and you’ve tried to solve it at least 3 times so far and still need some help, just click the Ask for Help button located on the challenge (it looks like a question mark).
This button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
We have some tests to prevent the most common wrong answers. This is a novel enough of a wrong answer that I don’t think we can really reasonably catch it.
@JeremyLT Why does the 2nd test:
totalshould equal 20.
not fail with this code. The test is:
assert(total === 20);
total should be
undefined outside of the
After thinking a bit about this, I think babel transpiles the
let to be
total is a global variable by the time the tests run.
@ojeytonwilliams Is this correct?
That would certainly be rude behavior.