Challenge: Favorite Colors
Tâche
Swipe to start coding
Practice working with arrays by defining and displaying your favorite colors.
- Create a new array called
favoriteColorsand initialize it with five color names of your choice. - Loop through each element in the
favoriteColorsarray. - Print each color to the console on a separate line.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 2
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Awesome!
Completion rate improved to 3.57
Challenge: Favorite Colors
Glissez pour afficher le menu
Tâche
Swipe to start coding
Practice working with arrays by defining and displaying your favorite colors.
- Create a new array called
favoriteColorsand initialize it with five color names of your choice. - Loop through each element in the
favoriteColorsarray. - Print each color to the console on a separate line.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 2
single