单项选择题

function test(){
    console.log(true);
}
if (test()) {
    alert("111");
} else {
    alert("222");
}
请问输出结果()

A.111
B.222