Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Indexing | Exploring Arrays
Introduction to JavaScript

Swipe to show menu

book
Challenge: Indexing

Task

Swipe to start coding

  • You have an array named colors that contains the following four colors in this exact order: Red, Green, Blue, Yellow;
  • Print the first color in the array using console.log().
  • Print the third color in the array using console.log().

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 5. ChapterΒ 3

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Challenge: Indexing

Task

Swipe to start coding

  • You have an array named colors that contains the following four colors in this exact order: Red, Green, Blue, Yellow;
  • Print the first color in the array using console.log().
  • Print the third color in the array using console.log().

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 5. ChapterΒ 3
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt