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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments