+ 1

Objects

What is the need of classes in JavaScript if almost everything is an object

4th Aug 2019, 7:43 AM
Patrick Muoka
Patrick Muoka - avatar
4 Respostas
+ 5
String is a class what would you do without this data type? You would have to create your own right? That's there purpose to create data types to use in your program 😊
4th Aug 2019, 8:28 AM
D_Stark
D_Stark - avatar
+ 4
To define objects of your own behavior, like this : https://code.sololearn.com/WfUOxuP9iTmA/?ref=app Here is the full series : https://code.sololearn.com/WvIsS7qN8npX/?ref=app
4th Aug 2019, 8:24 AM
Gordon
Gordon - avatar
+ 1
Like Gordon said. To give new identity and behaviour which will be a model object. Just like lego you can do so many things and even create a world. Lego world 😀YAY
13th Aug 2019, 5:04 AM
\•/
\•/ - avatar
+ 1
I am not too flashy with coding yet but from what I can understand objects just hold multiple variable, and I have not touched on core objects yet so. . .well is everything from introduction to objects all about objects?
21st Sep 2019, 3:22 AM
Michael Davis
Michael Davis - avatar