How do you use while loop?

The loop will first execute the body, then check the condition, and, while it’s truthy, execute it again and again. For example: let i = 0; do { alert( i ); i++; } while (i < 3); This form of syntax should only be used when you want the body of the loop to execute at least once regardless of the condition being truthy.

Sizin İçin Seçtik  Is there a season 2 of Frequency on Netflix?

Leave a Reply

Your email address will not be published. Required fields are marked *