Skip to content

Latest commit

 

History

History
20 lines (20 loc) · 1.25 KB

File metadata and controls

20 lines (20 loc) · 1.25 KB

JavaScript Objects Study

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

This project is a comprehensive study of JavaScript objects with detailed examples and explanations on object creation, encapsulation, inheritance, and polymorphism.

Project Overview

The code demonstrates different ways to create objects in JavaScript, usage of constructor functions, encapsulation techniques with private properties, inheritance between constructors, polymorphism through method overriding, and checking data types and instances.

Features

  • Object creation using literals and constructor functions
  • Encapsulation of private properties with getters and setters
  • Inheritance of properties and methods between constructors
  • Polymorphism with method overriding in subclasses
  • Verification of data types and instances using typeof and instanceof
  • Clear and explanatory comments throughout the code

Technologies Used

  • JavaScript (ES5 syntax)

Usage

Run the main.js file using Node.js or any JavaScript environment to see the examples and console outputs.