oi Learning Javascript Part IV So t ill now we know what are arrays in javascript . In this pot we are going to talk about Objects. OOP Concepts are really very vast section to explore,So we are just going to have a introduction of them. Objects in JavaScript Objects are just like arrays, but they use strings instead of numbers to access the different elements. These strings used are called keys or properties , and the elements they point to are called values. But unlike the arrays which stores multiple values the objects usually represent single thing's multiple characteristics. Creating Objects in Javascript There are two ways to create objects in javascript. var myObject = new Object(); OR var myobject = {}; // Short way Lets create new object called Kitty. It will have information about our cat. Accessing Values Just l
Welcome to DeeCoder here we discuss,learn and work on ideas ,languages,softwares....