over 9 years ago
Hello Readers if you are confusing in while and do while loop in Javascript then this blog will be helpfull to you.
Lets see both of them working:-
First we will how while loop works:-
Now lets see how do while work:-
So now you have seen the major difference between both the loops is, In case of while the comparisons is done in beginning where as in case of another it will done at the bottom. But still you can choose the loop type what you like both works in same time.
Can you help out the community by solving one of the following Javascript problems?
Do activity (Answer, Blog) > Earn Rep Points > Improve Rank > Get more opportunities to work and get paid!
For more topics, questions and answers, please visit the Tech Q&A page.
0 Comment(s)