TypeScript

TypeScript async callback with parameters

Last Updated:

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.

TypeScript Function or Method Overloading

Last Updated:

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.

TypeScript Function Types

Last Updated:

Learn to create functions in typescript and function type declaration. We will also see how to declare and pass optional parameters, setting default value for …

TypeScript Template Strings

Last Updated:

A typescript template string (or template literal) is a regular JavaScript string which is enclosed within the back-tick characters (`) seeded with multiple placeholders denoted …

TypeScript Set

Last Updated:

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.

TypeScript Map

Last Updated:

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.

TypeScript for Loop

Last Updated:

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.

TypeScript Compiler Configuration

Last Updated:

TypeScript compiler uses tsconfig.json to get configuration options for generating JavaScript code from TypeScript sourcecode. When you uses $ tsc command to compile TypeScript code, compiler searches for configurations loaded in tsconfig.json.

TypeScript Literal Types

Last Updated:

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.

TypeScript Enums

Last Updated:

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.

TypeScript Array

Last Updated:

Learn to create array, clone array, merge arrays and iterate through array elements in TypeScript with easy to follow examples.

Difference between undefined and null

Last Updated:

In JavaScript, a variable is said to be “undefined” if it has been declared but not initialized. Whereas “null” is assigned to a variable whose …

TypeScript Union Types

Last Updated:

In TypeScript, a union type variable is a variable which can store multiple type of values (i.e. number, string etc). A union type allows us …

JavaScript Spread Operator

Last Updated:

The spread operator is a new addition to the features available in the JavaScript ES6 version. The spread operator is used to expand or spread …

TypeScript Logical Operators

Last Updated:

TypeScript logical operators are similar to what we have learned in JavaScript logical operators. These operators help in comparing boolean expressions and producing a single …

TypeScript Comparison Operators

Last Updated:

TypeScript comparison operators are the same as JavaScript. Comparison operators help in comparing two variables by their values. Please note that some operators use type …

TypeScript Type System

Last Updated:

TypeScript supports type checking for all primitive types and object types. TypeScript also supports generics, decorators, and ES6 module types as well. It is important …

TypeScript Tutorial

Last Updated:

TypeScript is an open-source programming language that is developed and maintained by Microsoft in 2012. TypeScript brings ‘types’ (or datatypes) to JavaScript. Generally, types check …

TypeScript Arithmetic Operators

Last Updated:

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 …

HowToDoInJava

A blog about Java and its related technologies, the best practices, algorithms, interview questions, scripting languages, and Python.