Skip to content

In this simple example `User` and `Admin` classes are created, where `Admin` class inherits `User` class using prototypes in JavaScript.

Notifications You must be signed in to change notification settings

AhmedAlYousif/JavaScriptPrototypalInheritance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Prototypal Inheritance Example

In this simple example User and Admin classes are created, where Admin class inherits User class using prototypes in JavaScript.

Run

To run the code just open the index.html file in the browser. Then inspect the page and see the output on the console.

Console Output

About

In this simple example `User` and `Admin` classes are created, where `Admin` class inherits `User` class using prototypes in JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published