showing results for - "array notation in javascript"
Nikita
13 Aug 2016
1var ob = {
2    name: "riyaz",
3    age: "20",
4    profession: "student"
5}
6ob.name = 'shuvo'; //this is called the dot notation
7ob['age'] = 21;    //this is called array notation
8console.log(ob.name)
9console.log(ob.age)