← Back to Exercises

Object Oriented Programing In Javascript

Star

Created by: Alejandro Sanchez

Direct access request

Enter your information and receive instant access

Difficulty

beginner

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

4 hrs

Technologies

During these exercises, we will explore object-oriented programming concepts and how to apply them using Javascript. Sadly, the javascript object implementations do not have concepts like Method Overriding, Polymorphism, Private properties, etc. But I will make a reasonable effort to use all the available object-oriented features:

  1. Create new instances.
  2. Create a class.
  3. Define your first property.
  4. The constructor and constructor parameters.
  5. Some practical class examples.

Local Installation

1) Make sure you have learnpack installed and node.js version 14+. This is the command to install learnpack.

1$ npm i learnpack -g

2) Install the node compiler for learnpack and jest package for unit testing:

1$ learnpack plugins:install learnpack-node && npm i jest@24.8.0 -g

3) Clone or download this repository. Once you finish downloading, you will find a new folder with a subdirectory "exercises" that contains all the exercises within.

4) Start the tutorial/exercises by running the following command from the root of the project:

1$ learnpack run

How are the exercises organized?

Each exercise is a small react application containing the following files:

  1. app.js: represents the entry python file that will be executed by the computer.
  2. index.html: represents the entry website.
  3. style.css: your website styles, they have to be imported from the index.html
  4. README.md: contains exercise instructions.
  5. test.js: you don't have to open this file, it contains the testing script for the exercise.

Contributors

Thanks goes to these wonderful people (emoji key):

  1. Alejandro Sanchez (alesanchezr), contribution: (coder) πŸ’» (idea) πŸ€”, (build-tests) ⚠️ , (pull-request-review) πŸ‘€ (build-tutorial) βœ… (documentation) πŸ“–

  2. Paolo (plucodev), contribution: (bug reports) πŸ›, contribution: (coder), (translation) 🌎

This project follows theall-contributors specification.Contributions of any kind are welcome!

Direct access request

Enter your information and receive instant access

Difficulty

beginner

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

4 hrs

Technologies