React Component Nesting and Reusability Explained – A Beginner's Guide 2026
1] Do while loop in JavaScript is a control flow statement that continually runs a block of code until a given condition is evaluated to false.
2] While a do...while loop is similar to a while loop, the main distinction is that the code block is run at least once before the condition is verified.
do
{
code executed
}
while (condition)
1] keyword starts the loop.
2] block of code executed first.
1] keyword condition that is evaluated after execute of the block of code.
2] condition evaluates true block of code executed again than condition false the loop terminates.
Q. Display Number 10 to 1
Source code
Explain program :-
1] a starts at 10 .
2] loop prints value of a and decrement (a--) after each iteration
3] condition run long i greater than 0
Q. display number 11 to 20 using do.. while loop
JavaScript do while loop
Q. user input using do while loop
4] Example
Q. javascript that iteration 28 times
Comments
Post a Comment