单项选择题

有如下程序var x;function x(){}console.log(x);x=1;console.log(x);以上输出结果为 ()

A.undefined function x(){}
B.1function x(){}
C.function x(){},1
D.undeinfed 1