It’s all about Javascript
Javascript Inheritance:
Essentially, in javascript, it’s all about functions, and it can work as a class like so. (A very power concept, (I think, unique in js?), that a function is a class!!!)
function Pet(name, parent) {
this.name = name;
this.parent = parent;
}
// the syntax is keyword (1)function followed the (2?)function name (can be optional in the case of an anonymous function), then followed by (3) parameters in parenthesis, followed by (4) curly…