Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)
 
PREVIOUS NEXT
Tagged: #array #notation #javascript
ADD COMMENT
Topic
Name
5+2 =