Well done!

You have completed Iterating with Loops in JavaScript: Types and Applications Quiz!

Quiz Question 1 of 5

Consider the following code:

const book = {title: "1984", author: "George Orwell", year: 1949}; let output = ""; for (let prop in book) { if (prop === "year") { continue; } output += book[prop] + " "; } console.log(output);

What will be the output of the code, and which principle of loop control is demonstrated here?

Choose the correct answer below:

Skip Quiz Review Instruction