main.js
1
2
3
4
5
6
function multiply(a, b) {
  console.log(a); // => 5
  console.log(b); // => undefined
  return a * b;
}
console.log(multiply(5)); // => NaN
Native Browser JavaScript