Shubham Vora has Published 957 Articles

Computer Network - Definition, Components, Objectives

Shubham Vora

Shubham Vora

Updated on 23-Jan-2023 15:11:53

2K+ Views

PCs are incredible things; however, they genuinely sparkle when they are important for an organization. When a gadget is associated with an organization, it can achieve a lot more, including web surfing, conveying and working with partners, looking into data, putting away information, and managing a monetary exchange, in addition ... Read More

How utility types are used in TypeScript?

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 18:08:57

506 Views

TypeScript allows us to create a new type from the existing types, and we can use the utility types for such transformation. There are various utility types that exist in TypeScript, and we can use any utility type according to our requirements of the type transformation. In this tutorial, we ... Read More

How does tuple destructuring work in TypeScript?

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 18:04:48

2K+ Views

In TypeScript, a tuple is an object which contains the values of different data types. The length of a tuple is always pre-defined. It is similar to an array, but the array contains the values of only one data type, and the tuple contains values of multiple data types. Destructuring ... Read More

How to use the readonly keyword in TypeScript?

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 18:03:30

371 Views

We will learn to use the readonly keyword in TypeScript. The readonly keyword allows developers to make class properties and members read-only, and we can’t edit the value of the read-only properties. It works the same as the const keyword, but the const keyword is used for the variables, and ... Read More

How to make object properties immutable in TypeScript?

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 18:00:22

3K+ Views

The simple definition of the immutable object property is the properties we can’t modify once we define and initialize the object property. We can use the const keyword, but we have to initialize the property while creating the property. So, we have to use the readonly keyword to make the ... Read More

How to create a stack in TypeScript using an array?

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 17:37:03

3K+ Views

The stack is a data structure based on the LIFO, which means last in, first out. In brief, it says that whatever element you add at last in the stack comes out first from the stack. There are some basic operations that users can perform on the stack. For example, ... Read More

What is parameter destructuring in TypeScript?

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 17:00:13

8K+ Views

In TypeScript, parameter destructuring is unpacking the argument object into separate parameter variables. For example, suppose we have passed the object with multiple properties as an argument of any function. In that case, we can destructure the object in the parameter and access all required properties of the object in ... Read More

How to create a queue in TypeScript using an array?

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 16:38:02

3K+ Views

We will learn to create a queue from scratch using the array in TypeScript in this tutorial. The Queue is a data structure allowing users to add elements from the end and remove them from the start. It means it works based on the FIFO concept, meaning first in, first ... Read More

Tackling recursion (not just) in Typescript

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 16:32:53

4K+ Views

Recursion is a fundamental programming concept that refers to a function calling itself. It can be a powerful tool for solving problems, but it can also be a source of confusion and frustration, especially for beginners. In this tutorial, we'll explore how to use recursion effectively in TypeScript, a popular ... Read More

How to Use Associative Array in TypeScript?

Shubham Vora

Shubham Vora

Updated on 20-Jan-2023 16:27:09

13K+ Views

An object with one or more elements is known as an array. Each of these components can be an object or a simple data type. For example, you can put dates, strings, and numbers in the same array. Information can also be stored using associative arrays. An array that employs ... Read More

Advertisements