+ 3

Whats wrong with this 'For' loop?

I wrote a code that loads a progress bar from 0 to 100. It uses a for loop inside of a function, but I don't know how to fix the error. https://code.sololearn.com/WeHCe021fYB8/?ref=app

18th Jun 2018, 9:09 PM
Archie
Archie - avatar
11 Réponses
+ 2
Here I corrected the problem and cleaned the code: https://code.sololearn.com/WTfQE86Xlw65/?ref=app
18th Jun 2018, 9:20 PM
Michael55555
Michael55555 - avatar
+ 3
Do you know any way to make it slower? Like look like its loading?
18th Jun 2018, 9:21 PM
Archie
Archie - avatar
+ 3
I'm read, sorry it took three minutes ;(
18th Jun 2018, 9:25 PM
Michael55555
Michael55555 - avatar
+ 2
you are not calling the finction?
18th Jun 2018, 9:31 PM
Ismael Garcia
Ismael Garcia - avatar
+ 2
Ismael Garcia When you look at the HTML you can see that it's called by the onclick attribute
18th Jun 2018, 9:32 PM
Michael55555
Michael55555 - avatar
+ 2
line 3 don't have a open { that is why
18th Jun 2018, 10:04 PM
Ismael Garcia
Ismael Garcia - avatar
+ 2
Åtomıc you didn't use the "var" keyword when declaring var "i"
18th Jun 2018, 10:27 PM
Dlite
Dlite - avatar
+ 1
Can you post a link to your code please?
18th Jun 2018, 9:12 PM
Michael55555
Michael55555 - avatar
+ 1
Oops, forgot to
18th Jun 2018, 9:14 PM
Archie
Archie - avatar
+ 1
Yes, wait exactly one minute I will update my code!
18th Jun 2018, 9:22 PM
Michael55555
Michael55555 - avatar
+ 1
you did not use > sign in your progress opening tag and thats why its not working apply it and i have already checked it after applying the code is working fine.
21st Jun 2018, 9:16 AM
Anayut Ullah
Anayut Ullah - avatar