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

Can someone help

It is saying document.write wasnt called but I put it in

script.js
var counter = 0;
while ( counter > 26 ) {
    document.write();
    counter += 1;
}

2 Answers

furkan
PRO
furkan
Pro Student 9,529 Points

You are so close! You forgot to place the counter variable inside the document.write function between the two parentheses. Because the challenge wants you to print the count out onto the page.

HIDAYATULLAH ARGHANDABI
HIDAYATULLAH ARGHANDABI
20,985 Points
var counter = 0;
while ( counter > 26 ) {
    document.write(counter);
    counter += 1;
}