Object-Oriented JavaScript ES6

Image source from codeburst.io
class PersonName[firstName, lastName]
Bio{"[Name] is ["Age"] years old. They like ["interests"]"}
Greeting{"Hi! My name is [Name]"}


What are classes?

Example class function via VsCode


What are constructors?

Example Constructor via VSCode
Fish by Giphy
let blueFish = new Fish('Blue Fish', 1, 'Puffer fish', "Female)

Getters & Setters

What are getters and setters in Object-Oriented JS?

Example getter
Getter is now accessible to read
Flatiron: OOJS Method Type
Flatiron: OOJS Method Type
Example Static method

Static Method

What is a static method?

Clones of Home (Body Hacks)



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store