JavaScript

Tafadzwa Timothy Gakaka
Tafadzwa Timothy Gakaka
3,311 Points

Create a while loop that logs the current value of count to the console 26 times. Use the count variable to track the n

Create a while loop that logs the current value of count to the console 26 times. Use the count variable to track the number of times the loop runs. Don't forget to increment count by one each time through the loop. 😀

1 Answer

Simon Coates
Simon Coates
3,036 Points

maybe something like

let count = 1;
while(count <= 26){
console.log(count);
count++;
}