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

Svep för att visa menyn

book
Challenge: Indexing

Uppgift

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

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 5. Kapitel 3
Vi beklagar att något gick fel. Vad hände?

Fråga AI

expand
ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

book
Challenge: Indexing

Uppgift

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

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 5. Kapitel 3
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt