creating an object of data for a user javascript code example
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(){}
}