The thing is, is that it's not my calculation. I'm not doing this by hand.gfoot wrote:The javascript calculation is being performed by your browser to check your answer, so if the result you get isn't what it expects, your calculation is wrong. Your browser isn't lying!
There is a subtlety you may have missed, but I won't say what it is.
Also, remember that you don't have to attack each problem exactly in the way the challenge title says - sometimes there are more direct ways to be sure you get the right answer.
"Inclusive" and "Follow the Logic" HELP!
Stuck - but not on the math
OK, feel free to edit if you think I'm giving away the answer, but every time I do the math for Follow the Logic, I get 333. I don't know what I'm doing wrong, but I've done it in Python, by hand, and had a friend do it on his own, and we always get the same answer. Is there a subtlety I'm missing, or am I just completely off the mark?
Please comment or PM to give a useful hint.
Please comment or PM to give a useful hint.
First time using javascript...
... but I got it. Test the code you found with an online interpreter. But there is still one line confusing me. x)