Question: 1
Refer to the code below:
console.log(''start);
Promise.resolve('Success') .then(function(value){
console.log('Success');
});
console.log('End');
What is the output after the code executes successfully?
Question: 2
A developer wants to literate through an array of objects and count the objects whose property value, name, start with the letter N.
const arrobj -- [{''name ''t ''Zach''}, { ''name t Kate'') , ( ''name Alice'') < ( ''name'' t ''Bob'') , (''name'' t ''Nathan) , (''name'' t ''Nathandle1'')]
Refer to the code snippet below:
Which missing lines 02 and 03 return the correct count?
Question: 3
A class was written to represent items for purchase in an online store, and a second class representing items that are on sale at a discounted price. The constructor sets the name to the first value passed in. The pseudocode is below:
There is a new requirement for a developer to implement a description method that will retrun a brief description for item and saleitem.
What is the out when executing the code above?
Question: 4
A developer is required to write a function that calculates the sum of elements in an array but is getting undefined every time the code is executed. The developer needs to find what is missing in the code below.
Which option makes the code work as expected?
Question: 5
Refer to the following object:
How can a developer access the fullname property for cat?