Skip to content

Latest commit

 

History

History
25 lines (25 loc) · 1.08 KB

File metadata and controls

25 lines (25 loc) · 1.08 KB

JavaScript Object Practice

Este README também está disponível em Português.

This project is a hands-on practice with JavaScript objects, focusing on creating classes, constructors, methods, inheritance, and polymorphism.

Project Overview

The code demonstrates defining base classes and subclasses using constructor functions and prototype inheritance. It includes examples of method overriding and encapsulation with practical use cases involving different house types.

Features

  • Base class and subclasses with shared and unique properties
  • Prototype-based inheritance
  • Method definition and polymorphism
  • Use of constructor functions and prototype chaining
  • Comments explaining key concepts in the code

Technologies Used

  • JavaScript (ES5 syntax)

Usage

Run the main.js file in any JavaScript environment (browser console or Node.js) to see object creation and method calls in action.