teotimepacreau / Classes-Exercice-Day34-of-100DaysOfCode

Classes POO exercices from #30daysofjavascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Classes Exercices from #30DaysOfJavascript

https://github.com/Asabeneh/30-Days-Of-JavaScript/blob/master/15_Day_Classes/15_day_classes.md

Learning

  • class allows to create an object with built in properties
  • class constructor is the better way to add properties
  • this keyword
  • class extending to create child objects of the class that herits properties of the parent class
  • constructor and super to rewrite or add properties to the child class
  • importance of putting in constant the result of functions inside a class if I want to access it later
  • using ...rest as parameter to avoid typing each parameter in the constructor

🛠️

Vanilla Javascript

About

Classes POO exercices from #30daysofjavascript


Languages

Language:JavaScript 100.0%