パラセタモール.js💊| #51: JavaScript の説明


JavaScript でのコードの説明




function nums(a, b) {
  if
  (a > b)
  console.log('a is bigger')
  else 
  console.log('b is bigger')
  return 
  a + b
}

console.log(nums(4, 2))
console.log(nums(1, 2))


  • を: a is bigger , 6 y b is bigger , 3
  • B: a is biggerundefined y b is biggerundefined
  • C: undefined y undefined
  • D: SyntaxError

  • Respuesta en el primer comentario.