单项选择题

var str=null,result;
if(str){result="hello"}else{result="no"};
console.log(result);运行结果是()

A.hello
B.no
C.undefined
D.程序报错