
do…while Loop – Runs the block **at least once**, then tests the condition.
๐ Syntax
do {
// code executes at least once
} while (condition);
๐งช Example
let input;
do {
input = prompt('Enter number > 10');
} while (Number(input) <= 10);
Comments
Post a Comment