sayHello();  // works because of hoisting

function sayHello() {
  console.log("Hello!");
}

// let and const are hoisted but not initialized (Temporal Dead Zone)
// console.log(x); // would throw
let x = 10;
console.log(x);