Computers are great at doing the same thing over and over. Whether the computer is doing the same task a certain number of times or performing a specific action on a long list of things, computers are definitely the right tool for the job.
Humans can do these sorts of repetitive tasks, but it's boring!
Now, use five
console.log statements to print out the numbers from 1 to 5.
Boring and repetitive, right? Sounds like a job for a computer program!!
In the next exercise, you will use a loop to run a single console.log statement five times.
Be sure to use one
console.log statement once for each number from 1 to 5.