I'm studying JavaScript and saw some explanations that left me with doubts. Here in StackOverflow I saw several questions about whether to create an abstract class in JavaScript.
But my question is: Is it possible to create a class in JavaScript?
I'm asking this because I'm using the developer.mozilla site I found the following information:
"JavaScript is a dynamic, object-oriented language; and operators, objects, and methods. Its syntax comes from Java and C, so many structures of these languages apply to JavaScript as well. One of the main differences is that JavaScript no classes ; instead, the class functionality is performed by prototypes of objects. The other main difference is that functions are objects, giving the functions the ability to store executable code and passed as a parameter to any other object. "
The statement in bold left me with this doubt, because it is a reliable source for studies. What I understand is that there are classes, but there are elements that can be used as classes.
I do not know if this is the correct interpretation.
Moreover, this same text says that JavaScript is object oriented, so I tried to understand why the assertion of non-existence of classes would be around.
I see many co-workers and professionals who say they instantiated classes in JavaScript, used that class for that purpose in JavaScript.