Skip to content

predict · scope

Two declarations, read before their own lines.

Answer before anything runs. Then the machine runs it, and you can step through what it did.

function inspect() {
  const early = typeof counter;
  var counter = 0;
  return early;
}
const kind = inspect();
const total = 1;
What does `kind` hold when the program has finished?
What does `total` hold when the program has finished?