let str: any= 'str' let num: number = str //ok
Because this is the reason of the type any: be assignable from and to any other type. See it on basic types. Recommendation, read the FAQs.
any
Better ask questions to stackoverflow.
Most helpful comment
Because this is the reason of the type
any: be assignable from and to any other type. See it on basic types. Recommendation, read the FAQs.Better ask questions to stackoverflow.