复制1function checkAge(age) { 2 if (age < 18) { 3 const message = "Sorry, you're too young." 4 } else { 5 const message = "Yay! You're old enough!" 6 } 7 8 return message 9} 10 11console.log(checkAge(21))
1function checkAge(age) { 2 if (age < 18) { 3 const message = "Sorry, you're too young." 4 } else { 5 const message = "Yay! You're old enough!" 6 } 7 8 return message 9} 10 11console.log(checkAge(21))
本题为“单选题”
题库维护不易,您的支持就是我们最大的动力!