📜  javascript代码示例中的数组表示法

📅  最后修改于: 2022-03-11 15:02:26.306000             🧑  作者: Mango

代码示例1
var ob = {
    name: "riyaz",
    age: "20",
    profession: "student"
}
ob.name = 'shuvo'; //this is called the dot notation
ob['age'] = 21;    //this is called array notation
console.log(ob.name)
console.log(ob.age)