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...

Markdown supported · ⌘↵ to post
No responses yet.