main.js
1
2
3
4
5
6
function getNum() {
  // Notice that semicolons are missing
  let num = 1
  return num
}
console.log(getNum()) // => 1
Native Browser JavaScript