Skip to content
Quiz · Functions · lesson 7 of 10

Quiz — an arrow function with braces

What does the program print?

JavaScript
const twice = (x) => {
    x * 2;
};

console.log(twice(4));

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