Object and Unknown Types

Learn the difference between using the object and unknown types in TypeScript.

We'll cover the following

The object type

TypeScript introduces the object type to cover types that are not primitive types. This includes any type that is not number, boolean, string, null, symbol, or undefined.

Consider the following code:

Get hands-on with 1400+ tech skills courses.