+ 1

How are objects used in javascript?

I mean what is really the purpose of objects in javascript and how is it defined because I don't seem to get it properly am really confused?

15th Nov 2019, 7:55 PM
Adebiyi Muiz
2 Réponses
+ 2
Objects are used to split up big problems and have every Object take care of its tasks. For example the Math Object provides diffrent methods/functions such as pow() or sqrt(). In JavaScript nearly everything is an Object. An Object just has attributes(variables it stores inside of it self) and methods(functions that are stored inside of it self). You can also create your own Objects but it would be too much text to explain here, perhaps look at some tutorials 😁 hope this helped! happy coding!
15th Nov 2019, 9:19 PM
Anton Böhler
Anton Böhler - avatar
0
Thank you
16th Nov 2019, 5:15 AM
Adebiyi Muiz