代码题目 ☆☆☆

var obj = {
    "2": "a",
    "3": "b",
    "length": 2,
    "push": Array.prototype.push
}

obj.push("c");
obj.push("d");

通过上面的代码块得出 obj 的值是多少?

答案:


var obj = {
    "2": "c",
    "3": "d",
    "length": 4,
    "push": Array.prototype.push
}

results matching ""

    No results matching ""