Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Plz give ans this error

let i = 5; do { console.log(i); i += 5; } while(i<=50);
We write right code and output is correct according to question but after that show this error "Use the do keyword to mark the start of the do...while loop."
by

1 Answer

sonalvidu
let i = 5;

do {
console.log(i);
i += 5;
} while (i <= 50);

Login / Signup to Answer the Question.