ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 119 - Certified JavaScript Developer I discussion

Report
Export

Refer to the code below:

Let foodMenu1 = ['pizza', 'burger', 'French fries'];

Let finalMenu = foodMenu1;

finalMenu.push('Garlic bread');

What is the value of foodMenu1 after the code executes?

A.
[ 'pizza','Burger', 'French fires', 'Garlic bread']
Answers
A.
[ 'pizza','Burger', 'French fires', 'Garlic bread']
B.
[ 'pizza','Burger', 'French fires']
Answers
B.
[ 'pizza','Burger', 'French fires']
C.
[ 'Garlic bread' , 'pizza','Burger', 'French fires' ]
Answers
C.
[ 'Garlic bread' , 'pizza','Burger', 'French fires' ]
D.
[ 'Garlic bread']
Answers
D.
[ 'Garlic bread']
Suggested answer: B
asked 23/09/2024
Arnaud DUTEL
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first