Question: This is what I have, but it's not working.
This is what I have, but it's not working.
let i = 10; while (i >= 0) { document.write(i + " "); i--; }
This is how it should look
5. Create a script section in the document with a while statement that displays a countdown from 10 to 0 on the screen, as shown in the picture below. Countdown from 10 to 0 : 10987654321
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
