objects in javascript example programs
Example: creating an object javascript
let obj = {
// fields
name:"value",
num: 123,
//methods
foo: function(){}
}
let obj = {
// fields
name:"value",
num: 123,
//methods
foo: function(){}
}