while Loops
Hello, I am very new to JavaScript.
I am wondering if anyone can help me wrap my head around while Loops??
As an exercise I was reading about, it says:
A penny the 1st day, double the second day, until you reach $1,000,000. How many days will you work of course I know the math for this. But it states I have to do this as a while Loop and then print it to the document.
How should I go about this?
is there a template I can use that would help me for this and similar problems?
Thanks and I hope to hear from someone soon!
