HOMEWORK: https://github.com/HackYourFuture-CPH/JavaScript/blob/main/javascript3/week3/homework.md
Object-Oriented-Programming (OOP); principles:
Constructor: creates an instance of the class
Classes can be extended (base or super class, sub class)
super()
to call the constructor of the parent class as the very first thingStatic fields and methods can be used without instantiation
All fields and methods are public by default (don’t worry too much about it for now)
Resources & exercises
Refers to the instance of the class
Can’t be used in static methods
Bonus: bind + this
.catch(console.log.bind(console))
this
to a specific value in a new scope that would otherwise not have access to the valueResources & exercises