• 2022-06-01
    var bar=123 function foo () { console.log(bar) var bar=456 console.log(bar); } console.log(bar) foo() 请问输出的结果依次为
    A: 123,456,123
    B: undefined,456,123
    C: 123,undefined,456
    D: 123,123,456