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.
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.