Skip to content
Quiz · Asynchronous code · lesson 8 of 12

Quiz — async functions

Question 1 of 2

What does the program print (lines separated by spaces)?

JavaScript
async function double(n) {
    return n * 2;
}

const x = double(5);
x.then((v) => console.log(v));
console.log(x === 10);

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way