Understanding the any type

We will learn about the 'any' type in this lesson.

An example #

The code below declares a variable called something and sets it to various values. From the last lesson, we know that TypeScript will give something the any type because there is no type annotation or value assignment in the declaration.

Get hands-on with 1200+ tech skills courses.