+ 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?
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!
0
Thank you