← Week 5 — 12 / 38 →

Callback Heck

let threeThings = setTimeout(function oneThing() {
  console.log(“one thing”);
  let thingTwo = setTimeout(function anotherThing() {
    console.log(“another thing”);
    let thingThree = setTimeout(function aThirdThing() {
      console.log(“a third thing”);
    }, 0)
  }, 0)
}, 0)