creat objects js : code example
Example 1: Build JavaScript Objects
var myDog = {
name: "gozi",
legs: 4,
tails: 1,
friends: ["Ted", "Fred"]
};
Example 2: how to create a object in javascript
var a = {
name: "aakash",
age:30
}
var myDog = {
name: "gozi",
legs: 4,
tails: 1,
friends: ["Ted", "Fred"]
};
var a = {
name: "aakash",
age:30
}