Start interactive tutorial

← Back to Exercises

Object Oriented Programing In Javascript

Learn how objects and classes work and why they are so usefull in coding.

Work on real-life coding environments with LearnPack.

Get instant help with our AI mentor: Rigobot.

No installation, you go directly to programming

Difficulty

  • beginner

Average duration

4 hrs

Difficulty

  • beginner

Average duration

4 hrs

Sign up and get access to this free interactive tutorial

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • beginner

Average duration

4 hrs

Difficulty

  • beginner

Average duration

4 hrs

Difficulty

  • beginner

Average duration

4 hrs

Difficulty

  • beginner

Average duration

4 hrs

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.

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.

Note: These exercises have automatic grading but it is somewhat rigid, I recommend you ignore the tests, consider them as a recommendation or you could get frustrated.

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!

This and many other exercises are built by students as part of the 4Geeks Academy Coding Bootcamp by Alejandro Sánchez and many other contributors. Find out more about our Full Stack Developer Course, and Data Science Bootcamp.

Sign up and get access to this free interactive tutorial

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • beginner

Average duration

4 hrs

Difficulty

  • beginner

Average duration

4 hrs