html new object code example
Example 1: creating an object javascript
let obj = {
// fields
name:"value",
num: 123,
//methods
foo: function(){}
}
Example 2: how to create a object in javascript
var about = {
name:"lanitoman",
age:1023,
isHeProgrammer:true
}