JavaScript JavaScript Loops, Arrays and Objects Simplify Repetitive Tasks with Loops Create a while Loop

SYMIEN MOORE
SYMIEN MOORE
1,421 Points

while loop how do i run the while loop with document.write inside

im on the javascript course and the practie is saying that i need to write a while loop with document.write inside but when i do i get an error

script.js
var count = 0;
while (count < 26) {
  document.Write(count + " ");
  count += 1;
}

1 Answer