As we all know, JavaScript is prototypical in nature, the ES2015 inclusion of Classes made it seem somewhat object-oriented to newcomers. It’s not! Classes are just syntactical sugar over JavaScript’s existing prototype-based inheritance. A JavaScript class provides a simpler and clearer syntax to create objects and deal with inheritance that’s all.

Object.prototype

JavaScript objects are made up of properties usually called “own properties”. These properties have keys(names) and values associated with them. objects can also have methods when the value of a property is defined as a function. Quite a number of JavaScript developers don’t know that every object has a…


Orinami Olatunji

Thinking…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store