main.js
1
2
3
4
function square(x) {
  const res = x * x;
}
console.log(square(2)); // => undefined
Native Browser JavaScript