J
J
JackShcherbakov2017-11-19 18:43:27
JavaScript
JackShcherbakov, 2017-11-19 18:43:27

Why do you need OOP in javascript?

No matter how much I tried to understand why this thing is needed, I did not understand anything. What is the meaning of it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
evgeniy_lm, 2017-11-20
@JackShcherbakov

Because a person thinks in objective categories. He is a programmer, so it is natural and convenient for him to use OOP

A
Andrey Sanych, 2017-11-19
@mountpoint

for the same thing as in other languages

T
thehighhomie, 2017-11-19
@thehighhomie

You need to read these two articles + comments from people below:
Functional style
OOP Prototype style OOP
AND video:
Javascript Jedi #20 - Prototypes and Inheritance
Javascript Jedi #21 - Constructors and Classes
This is enough to understand OOP in JS and for what it is) during practice, you will see for yourself)
And better study the entire tutorial: Modern Javascript Tutorial
As for Sorax's videos, I won't say that I like them, but they praise him on the net, so it's up to you, the tutorial helped me more.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question