JS

JavaScript ES6 - Async await keywords

10.

What is a necessary condition for using the await keyword in JavaScript ES6?

The await keyword must be used inside a promise.

The await keyword must be used inside an asynchronous function denoted by async.

The await keyword can be used anywhere in the code.

The await keyword must be inside a for loop.