Question: INSTRUCTIONS In the given JavaScript code, when does the then method gets executed? When the fun 2 0 function is invoked in the Promise. After

INSTRUCTIONS
In the given JavaScript code, when does the then method gets executed?
When the fun20 function is invoked in the Promise.
After the Promise is resolved.
When the fun1() function is invoked in the Promise.
SUBMIT
If you skip, you can attempt this question again after finishing all questions
function tesk(){
,return new Promise(function(fun1, fun2)
,,fun1();
,
INSTRUCTIONS In the given JavaScript code, when

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!