Refer to code below:
Const objBook = { Title: ‘Javascript’,
};
Object.preventExtensions(objBook); ConstnewObjBook = objBook; newObjectBook.author = ‘Robert’;
What are the values of objBook and newObjBook respectively ?
Correct Answer:
A
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?
Correct Answer:
B
A test has a dependency on database. query. During the test, the dependency is replaced with an object called database with the method,
Calculator query, that returns an array. The developer does notneed to verify how many times the method has been called.
Which two test approaches describe the requirement? Choose 2 answers
Correct Answer:
AD
Given HTML below:
Which statement adds the priority = account CSS class to the universal COntainers row ?
Correct Answer:
B
Which javascript methods can be used to serialize an object into a string and deserialize a JSON string into an object, respectively?
Correct Answer:
A