Hello, All as the title suggest we are going to understand what is object-oriented in JS.
for those we don't have knowledge about Object Oriented Programming language, let's understand the terminology out OOP Language.
OOP language is totally based on objects where the objects contain data, methods, and its attributes.
let's take a realtime example as follows:
I have fruits which are as follows as Banana, Orange, Lemon, Apple, Mango etc, so if I want to find a number of fruits I have then I can use length function to find out.
length is a property of array and sort is the method of an object.
There are some other things are there as well which we call as primitive types.
Like string, boolean, null etc are primitive types.
let's check null,
null don't have any method or property so we cant expand it, so this way there are some other primitive types are there in JS.