https://tutorial.eyehunts.com/js/function-inside-object-javascript/
Function inside object JavaScript