#basics
Read more stories on Hashnode
Articles with this tag
Sometimes we want to allow more than one type in a variable, This can be easily done using Union Types. We simply add "|" symbol between the types...
Interfaces Interfaces are a way to define a structure that other data structures can adhere to. They can be classes, object literals, etc. We can...
In TypeScript functions cannot be defined unless the variables are given a datatype. function helloWorld(a: string, b: string) { return...