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

Swipe to show menu

book
Challenge: Defining An Array

Task

Swipe to start coding

  • Create an array named favoriteFoods that contains the following three elements: "Pizza", "Sushi", "Burger".
  • Use elements in the provided order.
  • Print the favoriteFoods array.

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Β 2
We're sorry to hear that something went wrong. What happened?

Ask AI

expand
ChatGPT

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

book
Challenge: Defining An Array

Task

Swipe to start coding

  • Create an array named favoriteFoods that contains the following three elements: "Pizza", "Sushi", "Burger".
  • Use elements in the provided order.
  • Print the favoriteFoods array.

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Β 2
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