• 2022-06-17
    下面的代码:var person = {fname:"Bill", lname:"Gates", age:62}; var text = "";for (var x in person) { text += person[x];}循环结束后,text的值为:( )。
    A: Gates
    B: BillGates62
    C: 62
    D: Bill
  • A,B,C,D

    内容

    • 0

      下面的代码:var person = {fname:"Bill", lname:"Gates", age:62};var text = "";for (var x in person) { text += person[x];}循环结束后,text的值为:( ) A: BillGates62 B: Bill C: Gates D: 62

    • 1

      下面的代码: var person = {fname:'Bill', lname:'Gates', age:62}; var text = ''; for (var x in person) { text += person[x]; } 循环结束后,text的值为:( )

    • 2

      以下代码片段执行后,text的值为:( )var person = {fname:"Bill", lname:"Gates", age:62};var text = "";for (var x in person) { text += person[x];} A: BillGates62 B: fname:"Bill", lname:"Gates", age:62 C: BillGates D: 62

    • 3

      下面的代码:varperson={fname:"Bill",lname:"Gates",age:62};vartext="";for(varxinperson){text+=person[x];}循环结束后,text的值为:() A: BillGates62 B: Bill C: Gates D: 62

    • 4

      下面的代码: varperson={fname:'Bill',lname:'Gates',age:62}; vartext=''; for(varxinperson){ text+=person[x]; } 循环结束后,text的值为:()