cf.completefrontend

Predict the outputEasy

What does this object literal with computed keys log?

What does this log?
let count = 0;
const prefix = "on";
const handlers = {
  [prefix + "Click"]: ++count,
  [`${prefix}Hover`]: ++count,
  onClick: ++count,
};
 
console.log(handlers);
console.log(count);

The answer

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

Checking your sign-in…