How would you describe an object to a non-technical friend you grew up with?
this
refer to and what is the advantage to using this
?
this
refers to the current object the code is being written inside of.name
and age
specific to the variable const dog
in the function.${this.name}
for every recurrence without having to change anything thus streamlining the code.