Answers for "array notation in javascript"

1

array notation in javascript

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)
Posted by: Guest on August-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language