Avoiding `any` at Any Time Possible
In this lesson, you will learn about a variable type that you should only use in a particular situation.
We'll cover the following
Dangerous world #
You must avoid (as much as possible) the type any
, principally because it can hold any value and therefore doesn’t enforce any protections. If you are integrating an existing JavaScript project with TypeScript, every variable will be, by default, set to any
until they are defined.
Get hands-on with 1400+ tech skills courses.