Discussion on Type Annotations and Type Inference
Type Annotations: Type Annotations is used to define the types of variable, function parameters, return values and object properties.Example: // Variables let value:string="Hello My Name is John Doe"; let secondValue:number=12; secondValue=12-1; // ...
Jul 12, 20241 min read23