declare an object in a function javascript code example
Example 1: objects in javascript
let car = {
engineNumber: 1234
brand: 'BMW',
break: function (){}
}
Example 2: how to create a object in javascript
var a = {
name: "aakash",
age:30
}