Skip to content
Quiz · Errors · lesson 2 of 10

Quiz — what throw skips

What does the program print?

JavaScript
let s = "";
try {
    s += "a";
    throw new Error("x");
    s += "b";
} catch (e) {
    s += "c";
}
s += "d";
console.log(s);

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