JavaScript Objects In Hindi

JavaScript Objects In Hindi

JavaScript

JavaScript Objects In Hindi – Objects Ek Data Structure hai joki aap bol sakte hai unordered collection of items in key : Value:Pair | Js dictionary in hindi me ham kuch bhi data store kar sakte hai for example :- float , string , integer |

Functions In JS in Hindi

Objects in Javascript ko Or Accha Samanjh ne ke liye iske A To Z example dekhte |

JavaScript Objects In Hindi

Agar Ham Real Life Me Baat Kare To, Car Ek Object Hai, And Uske Jo Name,Color,Weigth Etc.. Properties Hai. Lekin Car me Jo Start Or Stop Karne Jaise Features Ko Ham Methods Bolte Hai, Ise Hi Objects Kahte Hai Or Jyada Or Understanding Karne Ke Liye Niche Image Dekh Sakte Hai |

Img Source – w3schools.com

JavaScript Create Objects

Syntax :

variable name = { Curly braces }  

Aap upper diye gye syntax ko dekh sakte hai.

How To Create JavaScript Objects

JS Objects Ko Create Karne Ke Liye Aapko Ek Variable Ke Name And Fir {curly brackets} Open Karke Key And Value Ko Assign Karna Hai |

Example 1:

var data  = {Name : 'Danish Ali' , Age : 17 }
console.log(data)

Aap Upper Diye Gye Program ko samanjh sakte hai.

Output :

{Name : 'Danish Ali' , Age : 17 }

Example 2:

var data  = {Name : 'Danish Ali' , Age : 17 }
console.log(data.Name)

Output:

Danish Ali

Example 3:

var data  = {Name : 'Danish Ali' , Age : 17 }
console.log(data['Age'])

Output:

17

Aap Is Tarah Se Js Object Ka Istemal Kar Sakte Hai, Waise Aane Wale Tutorial Me Iske Bare Me Or Deep Me Samnjhne Wale Hai |

Also ReadData Types In JavaScript In Hindi

Leave a Reply

Your email address will not be published. Required fields are marked *