• 2022-06-01
    在Javascript中,运行下面代码的结果是( )
    function foo(x){
    var num=5;
    bar=function(y){
    return (x+y+(++num));
    }
    }
    console.log(foo(2));
    console.log(bar(10));
    console.log(bar(10));"
    A: undefined,18,19
    B: 17,18,19
    C: 5,18,19
    D: undefined,18,18