Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Pushing Elements to an Array | Exploring Arrays
Introduction to JavaScript

Veeg om het menu te tonen

book
Challenge: Pushing Elements to an Array

Taak

Swipe to start coding

  • You have an array named shoppingList that contains the following three elements: Milk, Eggs, and Bread.
  • Use the push() method to add the following two elements to the array: Butter, Cheese. (Please add these elements in the required order)
  • Use a console.log() statement to output the entire array in the format: After: [element1, element2, ...].

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 5. Hoofdstuk 5

Vraag AI

expand
ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

book
Challenge: Pushing Elements to an Array

Taak

Swipe to start coding

  • You have an array named shoppingList that contains the following three elements: Milk, Eggs, and Bread.
  • Use the push() method to add the following two elements to the array: Butter, Cheese. (Please add these elements in the required order)
  • Use a console.log() statement to output the entire array in the format: After: [element1, element2, ...].

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 5. Hoofdstuk 5
Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Onze excuses dat er iets mis is gegaan. Wat is er gebeurd?
some-alt