Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Javascript :: trim nodejs sentence from spaces 
Javascript :: js check if object has property 
Javascript :: Do not know how to serialize a BigInt 
Javascript :: javascript get index of object with value in array 
Javascript :: jquery ajax google api 
Javascript :: set html attribute jquery 
Javascript :: store object in local storage javascript 
Javascript :: wait n seconds in js 
Javascript :: add readonly attribute jquery 
Javascript :: get current screen name react navigation 
Javascript :: jquery get all file input elements 
Javascript :: how to change country code to country name in javascript 
Javascript :: creating a custom router class in backbone 
Javascript :: router link active in vue.js 
Javascript :: fill array with 0 javascript 
Javascript :: set focus javascript 
Javascript :: pandas to json 
Javascript :: xmlhttprequest readystate 
Javascript :: valid json return null on json_decode 
Javascript :: appTsConfig.compilerOptions[option] = value; 
Javascript :: jquery is checked 
Javascript :: find vowel & consonants in a string java script 
Javascript :: clean way to Deal with undefined in chrome storage local get 
Javascript :: nextjs x tailwind 
Javascript :: mouseevent clientx javascript 
Javascript :: transpose an array in javascript 
Javascript :: javascript regex test number only 
Javascript :: nodejs print variable in string 
Javascript :: most 5 spoken language in countries array in js 
Javascript :: jQuery select immediate children 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =