关于javascript:选择篇027下面代码的输出是什么

34次阅读

共计 255 个字符,预计需要花费 1 分钟才能阅读完成。

function getPersonInfo(one, two, three) {console.log(one)
  console.log(two)
  console.log(three)
}

const person = 'Lydia'
const age = 21

getPersonInfo`${person} is ${age} years old`
  • A: "Lydia" 21 [""," is "," years old"]
  • B: [""," is "," years old"] "Lydia" 21
  • C: "Lydia" [""," is "," years old"] 21

参考答案

正文完
 0