How to update the progress bar? I tried calling update() but I keep getting an error.
I think you need to call object.update(window, percent) in which object is specific progress bar you want to update the state.
When I was working on it figuring out the percent was the harder part because there is a way to do it if you assume base 10 and then there is a way to do it when the number of the questions don't matter. You have to use 100, division, and count.
What type of error did you get?
are you putting both parameters, window and %, into the .update() call?
yes. I did smth like this firstbar = update(window, 20).
it should be firstBar.update(). we always use . when using methods on objects. = is for the intitial construction.