...

/

OOP in JavaScript vs other languages

OOP in JavaScript vs other languages

This lesson introduces OOP in JavaScript and compares it to other languages by going over the advantages/disadvantages of both.

JavaScript has relied on the object-based style of programming since the beginning as functions and methods can be found written in this style.

However, OOP in JavaScript works differently from other languages. If you’re familiar with OOP in other languages, it’s important that you put that knowledge aside for now, since holding on to those concepts might confuse you.

Now, let’s look into how OOP in JavaScript differs from other languages.

OOP in Other languages

You must have seen that other languages such as C++, Java, and C# use the keyword ...