单项选择题

function f(y =x){let x =2;console.log(y);}f()以上代码运行结果是()

A.报错
B.1
C.2
D.undefined