how to make method for object javascript code example Example: objects in javascript let name = { name1: 'mark' }