Understanding Null and Its Uses in TypeScript

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 use cases of the null value and data type in TypeScript. Syntax Users can follow the syntax below to use the null keyword as a data type or value. let null_var: null = null; In the above syntax, ‘null’ refers to the data type of the null_var named ... Read More

Arrow Function Syntax in TypeScript

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 fat arrow and storing it inside the variable. After that, we can use that variable to invoke the function whenever required. Also, the arrow function doesn’t have any identity, as it is anonymous. So, we can identify it using the variable in which we have stored it. Syntax Users ... Read More

Explain Storage Object in HTML

Shubham Vora
Updated on 05-Jan-2023 15:47:25

319 Views

As the web storage word represents, it stores the data inside the user’s browser locally. Before HTML 5, developers were using cookies to store data locally, but the cookies allow for storing a limited amount of data, such as in kilobytes. The local storage allows users to store up to 5 MB of data. Developers use the cookies to store the data in the browser and exchange it between the client and server. When we store the data in the cookies, it expires after a particular time. However, we can set the data's expiry, but it still expires after ... Read More

Difference Between WiFi and Ethernet

Kiran Kumar Panigrahi
Updated on 05-Jan-2023 15:46:50

6K+ Views

WiFi is a wireless network to connect nearby devices with each other and share the Internet via hotspots. Ethernet, on the other hand, is a LAN network standard used in wired LAN. Go through this article to find out more about the features of WiFi and Ethernet and how they are different from each other.What is WiFi?WiFi stands for Wireless Fidelity. It defines any network based on the 802.11 standards, allows computers and devices with the required wireless capacity to communicate via radio waves with other computers or devices. IEEE established the 802.11 network standards, which describe how two wireless ... Read More

Explain Scope and Scope Chain in JavaScript

Shubham Vora
Updated on 05-Jan-2023 15:42:24

2K+ Views

In JavaScript, the scope defines how and in which part of our code we can access the variables and functions. In simple terms, the scope helps us improve our code's security and readability. So, we can access the variables and functions only inside its scope but not outside. We will discuss multiple types of scopes in this tutorial. Global Scope in JavaScript The variables and functions defined globally mean outside all blocks and functions with global scope. We can access all variables and functions with the global scope anywhere inside our code. Syntax Users can follow the syntax below ... Read More

Difference Between Downloading and Uploading

Kiran Kumar Panigrahi
Updated on 05-Jan-2023 15:41:31

6K+ Views

Downloading is a process in which the files are copied from a web server to a client machine, whereas Uploading is a process in which a client machine transmits the data to store it on a web server.Read through this article to find out more about Downloading and Uploading how they are different from each other.What is Downloading?Downloading is the process by which any electronic device or computer acquires data from other network sources. The procedure of downloading is similar to that of storing the data. The data is really saved on another system and then communicated and stored on ... Read More

Upgrade Docker Container with Previous Network and Volumes

Hemant Sharma
Updated on 05-Jan-2023 15:41:26

449 Views

Introduction This article is focused on the upgrading mechanism of container images. There are various methods to upgrade a container to its newest image. Here we have used some of the simple and easy-to-use methods. First, we discussed the manual method for a quick test. Then we tried some automatic methods. These methods will monitor the image and if any new update is present, they create a new container with the updated image. Methods Manually but using CLI Automatic but using CLI Automatic but using Docker Compose Manually but using CLI Here we are going to follow ... Read More

Get Docker Containers to Communicate on Local Host

Hemant Sharma
Updated on 05-Jan-2023 15:41:05

12K+ Views

Introduction Connection in Docker container can be made using various ways. Some of these are explained in this article. Docker networking using the command line interface and docker-compose. This networking leads to communication between the containers. Pre-requisites Install the below prerequisites before executing the commands. Docker Engine Docker compose Methods These methods are simple and easy to implement on the local machine. Using CLI commands Using Docker Compose Using Command Line Interface Here we are going to create two different containers and connect them using the docker networking features. Step 1: Create a Docker network $ ... Read More

Determine if a Process Runs Inside LXC Docker

Hemant Sharma
Updated on 05-Jan-2023 15:40:36

687 Views

Introduction The main goal of this article is to find out the if the process is on the container. We have discussed several methods that could help us to filter out the non-container machine from the container once. Simple commands and some special kernel files are used to conclude our point. Pre-requisite To implement the complete article on your setup machine, you need to have the below-listed prerequisites − Linux OS: Ubuntu Docker Daemon and Client Methods Some of the methods that help identify the machine are listed below. The machine could be a container or a ... Read More

Debug Node.js App in Docker Container

Hemant Sharma
Updated on 05-Jan-2023 15:40:21

935 Views

Introduction Bugs are bugging mankind since ancient times. At that time they produced different diseases but today’s bugs are logical errors in the program. Sometimes these are also a nightmare for developers. Here in this article, we will learn to create a Node.js app on a Docker container and also how to attach a debugger to the node application. What is debugging? Debugging is nothing but resolving the issues or errors in the code of the Node.js application. This application might be going through a rough time implementing all the tasks given to it. Debugging helps in smoothing all ... Read More

Advertisements