anonymous
  • anonymous
hi friends pls help me in JavaScript problem- var i = 0; do { print("This is iteration " + (i + 1) + "."); i++; } while( ); You can make sure a while loop runs once even if the condition never evaluates to true with a do/while loop. This ensures the code block runs at least once regardless of the condition's validity. Fix this do/while so it runs 4 times.
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
while(i < 4)
anonymous
  • anonymous
so the code should look like this: var i = 0; do { print("This is iteration " + (i + 1) + "."); i++; } while (i < 4);
anonymous
  • anonymous
thanx friend its working

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
anonymous
  • anonymous
thanx doodletech
anonymous
  • anonymous
i < 4
anonymous
  • anonymous
well many beginner does the same mistake, they write i>4, take care and don2t do that simple mistake :D if loops are not same with while loops :D (as condition)
anonymous
  • anonymous
You study JavaScript on the Codecademy .com too:)
anonymous
  • anonymous
Actually i don not understand that clause really means TT

Looking for something else?

Not the answer you are looking for? Search for more explanations.