Articles on Trending Technologies

Technical articles with clear explanations and examples

Difference between ELCB and RCCB

Manish Kumar Saini
Manish Kumar Saini
Updated on 22-Aug-2022 46K+ Views

A circuit breaker is an electrical switch that is designed to operated manually as well as automatically either in normal conditions or in case of a fault in the system. Therefore, a circuit breaker can also function as a protective device which can protect the system equipment and the operators. There are several circuit breakers are designed for this purpose, two of them are ELCB and RCCB. In this article, you will learn what ELCB and RCCB are, and what are the major differences between them. What is an ELCB? ELCB stands for Earth Leakage Circuit Breaker. The ELCB ...

Read More

Difference between Encryption and Decryption

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 22-Aug-2022 11K+ Views

The process of turning plain text into an encrypted form (cipher text) is known as encryption. Sensitive data is transmitted in an encrypted form so that it can be protected and a strong encryption mechanism ensures that the data is not misused even if a hacker gets hold of it. Decryption is the reverse mechanism where the encrypted cipher text is converted back into its original form.Read through this article to find out more about encryption and decryption and how they are different from each other.What is Encryption?Encryption is the procedure of encoding data in cryptography. This procedure turns plaintext, ...

Read More

Difference between Connection-oriented and Connection-less Services

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 22-Aug-2022 5K+ Views

Connection-oriented and Connection-less Services are used to establish connections between two or more devices. Connection-oriented Services A connection-oriented service is one that establishes a dedicated connection between the communicating entities before data communication commences. It is modeled after the telephone system. To use a connection-oriented service, the user first establishes a connection, uses it and then releases it. In connection-oriented services, the data streams/packets are delivered to the receiver in the same order in which they have been sent by the sender. Connection-oriented services may be done in either of the following ways − Circuit-switched connection: In circuit ...

Read More

How to convert a decimal number to roman using JavaScript?

Shubham Vora
Shubham Vora
Updated on 22-Aug-2022 911 Views

Roman numerals are a type of number system used to represent a fixed decimal number. Several letters from the Latin alphabet are used for the representation of roman numerals. In this tutorial, the user will learn how to convert a decimal number to roman using JavaScript. Seven symbols represent Roman numerals: I, V, X, L, C, D, and M. The values for symbols are given below. Syntax I is 1 V is 5 X is 10 L is 50 C is 100 D is 500 M is 1000 Using these seven symbols user can convert decimal numbers to roman. ...

Read More

How and why does 'z'['toUpperCase']() in JavaScript work?

Shubham Vora
Shubham Vora
Updated on 22-Aug-2022 313 Views

In this tutorial, we will learn how and why ‘z’[‘toUpperCase’]() works in JavaScript. From the given format, we can say that it calls the toUpperCase() method for the ‘z’ string. It will work the same as the toUpperCase() method, which we invoke by taking any string as a reference. Let’s understand the syntax of the ‘z’[‘toUpperCase’]() below. Syntax let result = 'z'['toUpperCase'](); // returns 'Z', string in upper case The above syntax is same as the below. Example let string = 'z'; let result = string.toUpperCase(); Why does ‘z’[‘toUpperCase’]() work? In JavaScript toUpperCase() method is used to convert ...

Read More

Can I declare JavaScript variables as specific types?

Shubham Vora
Shubham Vora
Updated on 22-Aug-2022 3K+ Views

In this tutorial, we will see if we can declare JavaScript variables as a specific type or not. The JavaScript contains the three reserve keywords to declare the variables: ‘let, ’ ‘var’, and ‘const.’ When the user declares the variable using any keyword, it has a different scope. The variable declared with the const keyword always remains constant, and we can’t change its value after initializing it. The variables declared with the let keyword have block scope and can’t be accessed outside its scope. When we declare the variables with the var keyword, it can have the global scope or ...

Read More

How to convert Unicode values to characters in JavaScript?

Shubham Vora
Shubham Vora
Updated on 22-Aug-2022 6K+ Views

In this tutorial, we will learn to convert Unicode values to characters in JavaScript. The Unicode values are the standard values for the character, and users can encode them to convert them into characters. For example, ‘A’ is a Unicode character whose value is 65 according to the ASCII (American standard code for information interchange) table. In the same way, all alphabets, numbers, and other characters have particular Unicode values. We will learn to identify the Unicode character from its values using JavaScript. Using the fromCharCode() Method In JavaScript, the string library contains the fromCharCode() method, which takes the decimal ...

Read More

How to convert an array into JavaScript string?

Shubham Vora
Shubham Vora
Updated on 22-Aug-2022 8K+ Views

An array is the most popular and adaptable data structure you might employ in your regular programming. Predefined methods and a few more techniques make converting an array into a string simple. The process of converting an array into a JavaScript String can be done in several methods, and in this article, we will be looking at them. Using the toString() Method Using the join() Method Using JSON.stringify() Method Using the Type Coercion Using the toString() Method There is an internal function toString(). It is a built-in JavaScript method that can be applied to any JavaScript variable. The ...

Read More

How to add 30 minutes to a JavaScript Date object?

Saurabh Jaiswal
Saurabh Jaiswal
Updated on 22-Aug-2022 12K+ Views

In this tutorial, we will learn how to add 30 minutes to a JavaScript Date object. Here we will discuss two methods which are following. Using the setMinutes( ) Method Using the getTime() Method Using the setMinutes Method The setMinutes() function of the date object accepts an integer representing the Minutes and replaces the value of the Minutes in the current date with it. Syntax Date.setMinutes(min, sec, ms); Parameter min − An integer between 0 and 59, representing the minutes. sec − An integer between 0 and 59, representing the seconds. If you specify the sec ...

Read More

How to add number of days to JavaScript Date?

Saurabh Jaiswal
Saurabh Jaiswal
Updated on 22-Aug-2022 19K+ Views

In this tutorial, we will learn how to add a number of days to a JavaScript Date object. Here we will discuss two methods which are following. Using the setDate( ) Method Using the getTime() Method Using the setDate( ) Method JavaScript date setDate() method sets the day of the month for a specified date according to local time. Syntax Its syntax is as follows − Date.setDate( dayValue ) Here dayValue is an integer from 1 to 31, representing the day of the month. Approach To add a number of days to the current date, first we ...

Read More
Showing 31791–31800 of 61,259 articles
Advertisements