JS-Dev-101 practice question 18 of 25

Refer to the code below: 01 const objBook = { 02 title: 'JavaScript', 03 }; 04 Object.preventExtensions(objBook); 05 const newObjBook = objBook; 06…

Choose your answer, then check it against the explanation.

Refer to the code below: 01 const objBook = { 02 title: 'JavaScript', 03 }; 04 Object.preventExtensions(objBook); 05 const newObjBook = objBook; 06 newObjBook.author = 'Robert'; What are the values of objBook and newObjBook respectively?
Answer options
Question 18 of 25

Keep practicing

Take the free JS-Dev-101 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other JS-Dev-101 practice questions

Scroll to Top