cf.completefrontend

Predict the outputHard

What does this script with a function expression and an IIFE log?

What does this log?
console.log("start");
 
const greet = function () {
  return "hi";
}
 
(function () {
  console.log("setup ran");
})();
 
console.log(typeof greet);

The answer

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

Checking your sign-in…