Question: what is the difference between classes and types?
Answer: Type generally refers to the classification of primitive values - integers, strings, arrays, booleans, null, etc. Usually, you can't create any new types. Class refers to the named set of properties and methods which an object is associated with when it is created.