asked 224k views
4 votes
A class refers to a template used to create new objects.
true or false

asked
User RickNZ
by
8.0k points

1 Answer

3 votes
Classes are a template for creating objects.

They encapsulate data with code to work on that data. Classes in JS are built on prototypes but also have some syntax and semantics that are unique to classes.
answered
User Moeffju
by
8.2k points

No related questions found