Skip to content

predict · objects

A spread, and a change to something inside it.

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

const defaults = { retries: 1, hosts: ["a"] };
const config = { ...defaults };
config.retries = 5;
config.hosts.push("b");
const retries = defaults.retries;
const hosts = defaults.hosts.length;
What does `retries` hold when the program has finished?
What does `hosts` hold when the program has finished?
Put the names that point at the same object into the same group
name12
defaults.hosts
config.hosts