Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 1.22 KB

readme.md

File metadata and controls

33 lines (18 loc) · 1.22 KB

Learning TypeScript

  • TypeScript ensures type safety

Interview Question: How do we define integers or floats in typescript?

Hint We don't need to define, integers and float everything is just number It is redundent to write the type when declaring a number, because typescript is smart enough to detect it and automatically asings the type as number


Read out Type Inference

  • It is redundent to write the type when declaring a number, because typescript is smart enough to detecht it and automatically asinged the type as number

Any

What is the best practice of type any? video

How functions are defined in Ts

A better way to write function

Related to topic: What is void? Void a brief description

never

The never type represents values which are never observed. In a return type, this means that the function throws an exception or terminates execution of the program.