An open API service indexing awesome lists of open source software.

https://github.com/teotimepacreau/classes-exercice-day34-of-100daysofcode

Classes POO exercices from #30daysofjavascript
https://github.com/teotimepacreau/classes-exercice-day34-of-100daysofcode

100daysofcode 30daysofjavascript jsclasses object-oriented-javascript objectorientedprogramming poo

Last synced: 4 months ago
JSON representation

Classes POO exercices from #30daysofjavascript

Awesome Lists containing this project

README

        

# 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