TypeScript supports callback functions to make your program asynchronous. A callback function is a function which is scheduled to be called after some asynchronous processing is completed.
In TypeScript, function overloading, or method overloading, is the ability to create multiple methods with the same name and a different number of parameters or types.
Set is a new data structure introduced in ES6. It allows to store distinct values into a List. Learn to create set, add and iterate set values.
Map is a new data structure introduced in ES6, to store key-value pairs. Learn to create map, add, delete, retrieve and iterate over Map entries.
In TypeScript, You can iterate over iterable objects (including array, map, set, string, arguments object and so on) using for…of loop. To be an iterable, an object must implement the @@iterator method.
In TypeScript, string literals allow you to specify the exact value a string must have in it’s lifespan. You can assume it a form as ‘string based enum’ which also is named group of string constants.
In TypeScript, enums are set of named constants. Though it is optional, but enums should be a named group of related constants. TypeScript supports both traditional enums and string-based enums.
Learn to create array, clone array, merge arrays and iterate through array elements in TypeScript with easy to follow examples.
In TypeScript, you can define a variable which can have multiple types of values (i.e. number, string etc). This is called union type. A union type allows us to define a variable with multiple types. This is achieved by using the pipe (‘|’) symbol between the types. Union types helps in some situations when migrating […]
An operator is a symbol that represents a specific action. An arithmetic operator can be used with one or more than values to produce a single value. In typescript, we can perform arithmetic operations using below given 10 operators. Arithmetic operators Operator Name Description and Example x + y Addition Adds two operands. x – […]