example of an object in javascript
Example 1: how to create a object in javascript
var a = {
name: "aakash",
age:30
}
Example 2: how to create an object in javascript
const person = {
name: 'Anthony',
age: 32,
city: 'Los Angeles',
occupation: 'Software Developer',
skills: ['React','JavaScript','HTML','CSS']
};
const message = `Hi, I'm ${person.name}. I live in ${person.city}.`;
console.log(message);
Example 3: how to create a object in javascript
var about = {
name:"lanitoman",
age:1023,
isHeProgrammer:true
}