Give an example of a loop which doesn't execute even once
Answers
Answered by
0
Answer:
let i = 0;
do {
alert( i );
i++;
} while (i < 3);
i hope i can get the right answer...
Answered by
0
Explanation:
Explanation: With a do while loop the condition is not evaluated until the end of the loop. Because of that a do while loop will always execute at least once. A for-loop always makes sure the condition is true before running the program.Jun 13, 2019
Similar questions
English,
6 months ago
India Languages,
6 months ago
Physics,
6 months ago
Biology,
11 months ago
Math,
11 months ago
Physics,
1 year ago
Social Sciences,
1 year ago