+ 4

JS vs Java classes

Are Java and JS classes the same? Do they work the same way? I understand their purpose in Java, but I don't understand how they can be useful in JS. Thank you for your time 😊

4th Jul 2019, 6:43 AM
Lavinia
Lavinia - avatar
2 Respostas
+ 6
They share some similaritys but there not exactly the same.. once you create an instance of class in java you cant simply add more properties to your object but in javascript you can add and remove them
4th Jul 2019, 8:08 AM
D_Stark
D_Stark - avatar
+ 1
Thanks for your answer
28th Oct 2019, 8:36 AM
Moses Daniel
Moses Daniel - avatar