Can Anyone Help with this?


#1

I played this level, what’s highlighted it’s what I wrote, Is it correct? cause it says ran out of time


#2

Your while loop needs to be >=


#3

I changed it, still not working.


#4

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)


#5

Thanks tyler, sorry for not changing it, I already figured it out.