I played this level, what’s highlighted it’s what I wrote, Is it correct? cause it says ran out of time
Your while loop needs to be >=
I changed it, still not working.
It should be total *= number
, not total += number
. Alternatively, you could also solve it using a built-in Javascript function. For example, 2 to the third power is Math.pow(2, 3)
Thanks tyler, sorry for not changing it, I already figured it out.