Where I write code.

Monday, 17 September 2018

Object Oriented Programming in Javascript Tutorial

Object Oriented Javascript Tutorial


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:

Object Oriented Javascript

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.

The same way in  Javascript fruits array is an object which has some properties and methods like 

length is a property of array and sort is the method of an object.


Nowadays, the Object-oriented Programming language is the more popular style for the programming language, and Javascript has taken the OOP concept from the scratch only.

If we go deep in Javascript's functions we will get the idea that Javascript already using the Object-oriented style, and everything in Javascript is an object.

But there is also one point we need to understand not all things are an object in Javascript.
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.

Conclusion:

So in shorts, everything in javascript is an object, and we use OOP concepts in our coding using some OOP terminologies which we will discuss later on this series.

So click here to understand what is mean by Objects in Javascript.

12 comments:

  1. Replies
    1. Welcome Richard, Keep Reading

      Delete
    2. I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts. Python Projects for Students Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account. Project Center in Chennai

      Delete
  2. I like the way you explained it. Object oriented programming in JavaScript is very different from object-oriented programming in other languages and it confuses me. Fortunately, degree holding programming experts from Assignment Expert assist me with up-to-date knowledge and clear explanation of terms and language.I know I can rely on them anytime regardless of the deadline needed. It’s very convenient! Highly recommend!

    ReplyDelete
  3. This is an awesome post. Really very informative and creative contents. This concept is a good way to enhance knowledge. I like it and help me to development very well. Thank you for this brief explanation and very nice information. Well, got good knowledge.
    WordPress development company in Chennai

    ReplyDelete

  4. This is an awesome post. Really very informative and creative contents. This concept is a good way to enhance knowledge. I like it and help me to development very well. Thank you for this brief explanation and very nice information. Well, got good knowledge.
    WordPress development company in Chennai

    ReplyDelete
  5. As an open-source elective, PHP is consistently created by a functioning and exceptionally committed worldwide network. language learning app Techpally

    ReplyDelete
  6. you can also save a lot of money when you do some home rentals, just find a cheap one* website design la

    ReplyDelete
  7. Thank your for all the enthusiasm to offer such handy information here. los angeles web design

    ReplyDelete
  8. Interesting website, i read it but i still have a few questions. shoot me an email and we will talk more becasue i may have an interesting idea for you. website design company

    ReplyDelete