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
- Host: GitHub
- URL: https://github.com/teotimepacreau/classes-exercice-day34-of-100daysofcode
- Owner: teotimepacreau
- Created: 2023-08-04T03:04:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-04T03:11:10.000Z (almost 2 years ago)
- Last Synced: 2025-01-15T10:32:40.610Z (5 months ago)
- Topics: 100daysofcode, 30daysofjavascript, jsclasses, object-oriented-javascript, objectorientedprogramming, poo
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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