#100daysofcode
Read more stories on Hashnode
Articles with this tag
Description Unions Unions are used to combine more than one data type to be used on a variable. This is how it is done; // This can be used to declare...
Description Data types can be explicitly declared in TypeScript. Although TypeScript automatically infers a data type on a variable declared....
Description This is used to describe the general structure of a function, the argument it takes in and the type of data it returns. // example 1 let...
Description Functions can be declared this way using TypeScript. let greet: Function; //greet has been set to a function. Note that it has to be...
Description Objects are declared this way in TypeScript let person = { name: 'marko', gender: 'male', age: 30 }; //The data type of the person...
Description Arrays can be written in TypeScript like this; let colors = ['red', 'blue', 'green']; //TypeScript automatically infers the type of array...