use [] to define an object in javascript code example
Example 1: create object javascript
const object = {
something: "something";
}
Example 2: objects in javascript
let name = {
name1: 'mark'
}
const object = {
something: "something";
}
let name = {
name1: 'mark'
}