Common TypeScript Types
TypeScript is JavaScript with syntax for types.
Here are some common types and how we could use them:
// number
function add(a: number, b: number): number {
return a + b
}
// string and boolean
function isStrLengthGreaterThan(str: string, len: num...
bzzz.hashnode.dev1 min read