Skip to content

predict · this

A method, pulled off its object.

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

const account = {
  balance: 100,
  read() {
    return this.balance;
  },
};
const direct = account.read();
const read = account.read;
const detached = read();
What does `direct` hold when the program has finished?
What does `detached` hold when the program has finished?