cf.completefrontend

Predict the outputEasy

What does this log after trying to change a frozen object?

What does this log?
const config = Object.freeze({
  api: "https://example.com",
  retries: 3,
  flags: { beta: false },
});
 
config.retries = 10;
config.timeout = 500;
config.flags.beta = true;
 
console.log(config.retries, config.timeout, config.flags.beta);
console.log(Object.isFrozen(config), Object.isFrozen(config.flags));

The answer

Work out every line it logs, in order. Then check.

Checking your sign-in…