Quiz

In this lesson, we will solve a quiz related to the concepts covered in the previous lesson

1

What is the correct output of the following code?

function func() {
  let promise = Promise.resolve(1);
  let result = await promise;
}
func();
A)

1

B)

true

C)

undefined

D)

SyntaxError

Question 1 of 20 attempted

Get hands-on with 1200+ tech skills courses.