Please help

https://www.codecademy.com/paths/code-foundations/tracks/learn-how-to-code/modules/bop-iii/lessons/bop-loops/exercises/bop-loops-putting-it-together

// Copy code here and run it!
let i = 0;
while (i < 10){
placeTile('mint')
placeTile('orange') 
placeTile('mint')
i++
}

Hi,I don’t know what‘s wrong with my code,please help,thank you very much!

on this line:

while (i < 10){

your brackets ( and ) are not right, I would recommend replacing them

not sure what you did, but in the editor:
image

where all the other brackets are colored white, the brackets on line 4 are colored red

1 Like

Thank you for your help
I corrected my code,and it works!
let i = 0;
while (i < 10) {
placeTile(‘mint’)
placeTile(‘orange’)
placeTile(‘mint’)
i++
}

Thank you very much!

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.