Shubham Vora has Published 957 Articles

How to encode and decode URl in typescript?

Shubham Vora

Shubham Vora

Updated on 16-Jan-2023 15:20:52

18K+ Views

The URI stands for the uniform resource identifier. The URL is one of the most common URIS. We use the URL (uniform resource locator) to find the web page located on the internet. The web pages also contain resources. In simple terms, URI is a string containing some characters, and ... Read More

How to create objects in TypeScript?

Shubham Vora

Shubham Vora

Updated on 16-Jan-2023 15:19:07

18K+ Views

The object contains the key-value pairs of its properties, or it can be an instance of the class in TypeScript. The class and its objects are the base of object-oriented programming. So, without an object, OOPS doesn’t exist. Mainly, objects are used to invoke the non-static methods of the class. ... Read More

How to create abstract classes in TypeScript?

Shubham Vora

Shubham Vora

Updated on 16-Jan-2023 15:14:23

1K+ Views

Introduction to Abstraction We wanted readers to get familiar with abstract classes and the requirements of abstract classes before implementing them. The abstraction means hiding. It is used to hide the lower-level code implementation from users and some developers. Furthermore, it is used to show only the required information about ... Read More

For-In Statement with Object in TypeScript

Shubham Vora

Shubham Vora

Updated on 16-Jan-2023 15:11:47

6K+ Views

In TypeScript, an object contains the properties and their values. We can use the for-in loop statement to iterate through every property of the objects and get its value. This tutorial will teach us to iterate through the object key-value pairs via different examples. Also, we will learn what kind ... Read More

Explain the different ready states of a request in AJAX

Shubham Vora

Shubham Vora

Updated on 05-Jan-2023 16:07:08

2K+ Views

AJAX stands for Asynchronous JavaScript and XML. It is a set of web development techniques to create interactive web applications. AJAX allows a web page to communicate with a server without reloading the page. Ready states are an important part of working with AJAX requests. The ready state of a ... Read More

Explain the working of timers in JavaScript

Shubham Vora

Shubham Vora

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

669 Views

In JavaScript, timers are a very noteworthy feature. As like the normal watch timer, we can start the timer at a time and execute the function or code in JavaScript after a particular time. In simple terms, we can use the timer to execute the code after some delay. ... Read More

Explain the differences in the usage of foo between function foo() {} and var foo = function() {}

Shubham Vora

Shubham Vora

Updated on 05-Jan-2023 16:03:33

1K+ Views

In JavaScript, we have different ways to define the functions. The function foo() {} and var foo = function() { } is two different ways to define the function. Both ways have their benefits and different use cases; however, both give the same result when executing the function. So, this ... Read More

Explain the benefits of spread syntax & how it is different from rest syntax in ES6?

Shubham Vora

Shubham Vora

Updated on 05-Jan-2023 16:01:07

259 Views

In the ES6 version of JavaScript, spread syntax is introduced as a very powerful feature. We can use the spread syntax to expand the array or objects into the variable of the same data type. For example, before the spread syntax was introduced in the ES6, developers were using ... Read More

Explain the concept of null and its uses in TypeScript

Shubham Vora

Shubham Vora

Updated on 05-Jan-2023 15:57:19

4K+ Views

In TypeScript, ‘null’ refers to the data type or value. The null is a keyword in TypeScript, which we can use to represent the absent or empty value. So, we can use ‘null’ to define the variable's data-type or initialize the variable. In this tutorial, we will learn the different ... Read More

Explain the arrow function syntax in TypeScript

Shubham Vora

Shubham Vora

Updated on 05-Jan-2023 15:50:01

4K+ Views

If you have worked with other programming languages, such as Python, you have heard about lambda functions. The arrow function is similar to the lambda function, which provides a shorter way to define the function inside TypeScript. We can create the function without a ‘function’ keyword by using the ... Read More

Advertisements