单项选择题

下面代码的输出是什么?()
var num = 8;
var num = 10;
console.log(num);

A.8
B.10
C.SyntaxError
D.ReferenceError