construct new object js 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
}