FAQ: Loops - Repeating Tasks Manually

This community-built FAQ covers the “Repeating Tasks Manually” exercise from the lesson “Loops”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Introduction To JavaScript

FAQs on the exercise Repeating Tasks Manually

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

I can’t advance to the next exercise since it doesn’t give me a task to do and since I don’t have a task, I can’t advance!

3 Likes

In case anyone else runs into this problem – I just hit the Run button again without changing any of the coding in main.js, and this seemed to ‘fulfill’ the requirements for exercise 3.

6 Likes

Thank you! I had the same issue.

You should click the ‘run’ button & that will fufill the requirement(task 3.)

Just click on the Run button once more and you can then pass! :slight_smile:

2.

Next, console.log() each item in vacationSpots . Since we don’t know loops yet, we have to console.log() each element in the array separately.

Yes, we do not know loops, however we can use method .forEach():

vacationSpots.forEach(element => console.log(element));

as we already know methods and functions :slight_smile: