单项选择题

const [first, ...rest] = [1, 2, 3, 4, 5];针对这个表达式,正确的选项是()

A.first//1,2,3,4,5
B.rest//2,3,4,5
C.rest//[]
D.first//1

微信扫码免费搜题