• 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
  • C

    内容

    • 0

      123×456÷789÷456×789÷123=

    • 1

      语句[img=127x23]17e43c4f4d0b6c4.png[/img]的输出结果是() A: 123 456 B: '123','456' C: 123,456 D: ('123','456')

    • 2

      执行如下代码的输出为:a = 123b = 456def fun():a = 456b = 123fun()print(a,b) A: 123 456 B: 456 123 C: 123 D: 456

    • 3

      var foo = '123';function print() { this.foo = '789'; console.log(foo);}print();

    • 4

      下列程序运行后结果是() var a = 18; f1(); function f1() { var b = 9; console.log(a); console.log(b); var a = '123'; } A: 123,9 B: undefined,9 C: 123,undefined D: 18,9