I am trying to learn JavaScript and JSON and I don't understand these lines of code. Is total a method of the object and why? What are these functions called so I can learn more about them?
let price = {
dollars: 9,
cents: 99,
total: function () {
return this.dollars + this.cents/100;
}
};