a) Explain while loop in jawascript with the help of an example of
Answers
Answered by
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
Social Sciences,
3 months ago
Math,
3 months ago
History,
6 months ago
Biology,
11 months ago
Physics,
11 months ago