单项选择题

var fun = 1; function fun(a){ console.log(a); } fun(); 以上脚本的运行结果是( )

A.1
B.undefined
C.程序报错fun is not a function
D.以上都不对