function in a javascript object code example
Example 1: javascript object
const object = {
something: "something";
}
Example 2: javascript object
let names = {
name1: 'What ever you want to put'
}
const object = {
something: "something";
}
let names = {
name1: 'What ever you want to put'
}