IS null check in TypeScript?

Undefined is the default value for uninitialized variables But TypeScript never assigns null to any variable . We have to assign Null to variable to make it null. Note that in the example above foo is of type any, which means that no type checking.

Leave a Reply

Your email address will not be published. Required fields are marked *