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