Challenge: Pushing Elements to an Array
Taak
Swipe to start coding
- You have an array named
shoppingListthat contains the following three elements:Milk,Eggs, andBread. - 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
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 60
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 1.33
Challenge: Pushing Elements to an Array
Veeg om het menu te tonen
Taak
Swipe to start coding
- You have an array named
shoppingListthat contains the following three elements:Milk,Eggs, andBread. - 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
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 60
single