What are the values of objBook and newObjBook respectively?
Refer to code below:
Const objBook = {
Title: ‘Javascript’,
};
Object.preventExtensions(objBook);
Const newObjBook = objBook;
newObjectBook.author = ‘Robert’;
What are the values of objBook and newObjBook respectively?
A . [title: “javaScript”] [title: “javaScript”]
B . {author: “Robert”, title: “javaScript}
Undefined
C . {author: “Robert”, title: “javaScript}
{author: “Robert”, title: “javaScript}
D . {author: “Robert”}
{author: “Robert”, title: “javaScript}
Answer: A
Latest JavaScript Developer I Dumps Valid Version with 144 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments