Shubham Vora has Published 957 Articles

How to create a two-dimensional array in TypeScript?

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 16:24:59

12K+ Views

A two-dimensional array in TypeScript is an array of arrays, or a matrix, which can be used to represent a table of data, a chess board, or any other type of grid. Two-dimensional arrays are useful when working with a data grid, such as a table or a chessboard. They ... Read More

How to create function overload in TypeScript?

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 16:23:20

1K+ Views

The function or method overloading allows developers to create multiple functions with the same name. Every function contains the same number of parameters but different data types. Also, the return type of the overloaded function can vary. Function overloading is the concept of object-oriented programming. Also, TypeScript supports OOPS, so ... Read More

Dynamic Date Populate in TypeScript

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 16:21:17

1K+ Views

TypeScript is a strongly typed, object-oriented programming language that enables developers to write code that is cleaner and easier to understand. The dynamic date population theory in TypeScript is that a JavaScript application can automatically populate a calendar, list, or other types of display with the current Date, time, or ... Read More

Boxing and Unboxing in Typescript

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 16:19:14

2K+ Views

The idea of boxing and unboxing is crucial to TypeScript. A value type in TypeScript is automatically converted into a reference type using a process known as boxing. In other words, boxing refers to transforming a value type into a reference type, and unboxing refers to transforming a reference type ... Read More

How to create the anonymous function in TypeScript?

Shubham Vora

Shubham Vora

Updated on 17-Jan-2023 11:32:56

6K+ Views

In TypeScript, we can declare the function using the function keyword. It is a block of code that performs some operation, and we can reuse the function code by invoking the function. There are two types of functions. One is a named function, and another is an anonymous function. The ... Read More

How to use interface with class in TypeScript?

Shubham Vora

Shubham Vora

Updated on 16-Jan-2023 18:33:25

2K+ Views

In TypeScript, classes are the template that defines the variables and methods. We can use class templates to create objects, which means the class is the reusable component in object-oriented programming, and we can reuse it by creating its object. We can use the ‘interface’ keyword to define the interfaces ... Read More

How to convert string to uppercase in TypeScript?

Shubham Vora

Shubham Vora

Updated on 16-Jan-2023 15:28:42

4K+ Views

In this TypeScript tutorial, we will learn to convert the string to uppercase. We need to convert every single alphabetic character to uppercase to convert the whole string uppercase by keeping the numbers and special characters as it is. As a beginner TypeScript programmer, maybe a question can arise in ... Read More

How to use delete Operator in TypeScript?

Shubham Vora

Shubham Vora

Updated on 16-Jan-2023 15:26:36

22K+ Views

Have you ever tried to delete the object properties in TypeScript? Then you definitely came across the ‘delete’ operator. In TypeScript, the delete operator only allows deleting the undefined, optional, or any object properties. Also, it returns the boolean values according to whether it deletes the property or not. Below, ... Read More

How to round the numbers in TypeScript?

Shubham Vora

Shubham Vora

Updated on 16-Jan-2023 15:24:16

44K+ Views

In this tutorial, we will learn to round numbers in TypeScript. In TypeScript, the number data types can contain number values with decimal parts, and sometimes, we require to remove decimal part by rounding the number value. For example, if you want to show the progress of something in the ... Read More

What is the use of this keyword in TypeScript?

Shubham Vora

Shubham Vora

Updated on 16-Jan-2023 15:22:55

8K+ Views

The “this” keyword is one of the most used keywords in TypeScript. For beginner TypeScript programmers, it’s complex to understand how this keyword works, but they will learn by the end of this tutorial. In this tutorial, we will learn to use this keyword in TypeScript. Syntax Users can follow ... Read More

Advertisements