Exam4Training

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

Exit mobile version