What is the output after the code executes successfully?
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?
A . End
Start Success
B. Start Success End
C. Start End Success
D. Success Start
End
Answer: C
Latest JavaScript Developer I Practice Questions with 144 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments