+ 2

Why doesn't this work?

This code is seriously bugged. Whenever I try to do what I'm supposed to do, in the end it says NaN. Pls help me. https://code.sololearn.com/WykA2DJR5U5P/?ref=app

1st Jul 2019, 1:43 AM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
2 ответов
+ 4
step 2 should be step1 * 2. And you shuld use step4 in if else statements instead of step5.
1st Jul 2019, 2:25 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
1st Jul 2019, 2:22 AM
Lexfuturorum
Lexfuturorum - avatar