English, asked by sunilkumar05j, 6 months ago

a) Explain while loop in jawascript with the help of an example of ​

Answers

Answered by Anonymous
7

Answer:

The JavaScript while statement creates a loop that executes a block of code as long as the test condition evaluates to true . The following illustrates the syntax of the while statement. ... The while loop evaluates the expression before each iteration, therefore, the while loop is known as a pretest loop.

Similar questions