单项选择题

function add([x, y]){return x + y;}console.log(add([1, 2]));以上代码运行结果正确的是()

A.1
B.2
C.NaN
D.3