Skip to content
Quiz · Errors · lesson 4 of 10

Quiz — return and finally

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

JavaScript
function f() {
    try {
        return "try";
    } finally {
        console.log("finally");
    }
}
console.log(f());

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