# FAQ: Loops - Putting it All Together

This community-built FAQ covers the “Putting it All Together” exercise from the lesson “Loops”.

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

## FAQs on the exercise Putting it All Together

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 () 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.

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

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!

ok…i’m on the Putting It All Together part of the Loops lesson and i’m looking at the examples for For Loops and While Loops and all i can think is “where the ■■■■ did those i’s and semi-colons come from?” Did i miss something? Maybe I’m having trouble putting two and two together, but the (i = 0; i < 10; i++) confused me and for the first time in this whole course, I’m completely lost…

17 Likes

Same. My gut interpreted it as the conditions that would read kinda of like this (but i’m not sure it’s correct):

FOR loop
for (i = 0; i < 10; i++) { //for index starting at 0; with up to 10 items indexed; repeat the index
placeTile(‘mint’)
placeTile(‘orange’)
placeTile(‘mint’)

WHILE loop
let i = 0; //let index start at 0
while (i < 10) { //run list until index reaches 10
placeTile(‘mint’)
placeTile(‘orange’)
placeTile(‘mint’)
i++ //repeat indexed tiles as above (just like the === means verify it’s really true, i’m guessing ++ means add up the items

It’d be great if someone could confirm or correct this

3 Likes

A little modification on the previous response:

let i = 0
while (i < 10)
{
placeTile(‘mint’)
placeTile(‘orange’)
placeTile(‘mint’)
i++
}

//Corrected.

Looks like that confirmation has not been forthcoming.

``````i++
``````

is the JS shorthand to increment `i`.

``i++  <=  i += 1  <=  i = i + 1``
1 Like

Having trouble getting past the Review, it’s not loading the next page (assuming it’s a quiz)

When I click the “Up Next” button I get a white screen.

4 Likes

I’m having the same issue. Did you reach a solution? I ran the code correctly, but the Next button won’t pop up.

1 Like

So I have done the lab part of this lesson and completed the objectives. however, the next button is not lighting up.

I also had this problem, in the end I just got frustrated and refreshed the entire page. It then allowed the next button to light up. Not sure why it worked tho!

i = (is for) iteration