Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
How to implement class constants in TypesScript?
In this tutorial, we will learn to implement class constants in TypeScript. Any application has shared values that need to be used by classes and modules. These numbers could be configuration parameters, environment settings, error codes, or status indications. Using constants to hold those values rather than hard-coding magic strings is recommended. Constant use makes a program manageable by preventing the repetition of values in different places. Object-oriented JavaScript is TypeScript. Classes, interfaces, and other object-oriented programming are supported by TypeScript. In terms of OOP, a class is a template for building objects. The object's data is contained within a ...
Read MoreHow to push an element at the beginning of an array in TypeScript?
In this tutorial, we will learn to push the elements at the start of the array in TypeScript. There are different ways to push single or multiple elements at the start of the array in TypeScript. Here, we will learn three different methods to push array elements at the array's starting index. Using the Array.unshift() Method The Array.unshift() method of TypeScript allows us to add the element into the array at the beginning. Also, we can add multiple elements at the start of the array using the Array.unshift() method. Syntax Users can follow the syntax below to use the array.unshift() ...
Read MoreHow to override multiple if-else conditions using a switch statement in TypeScript?
In this tutorial, we will learn to override the multiple if-else conditions using the switch case statement in TypeScript. The single if-else statement is used to execute the condition statement. If the condition becomes true, the statement of if block executes otherwise control fallbacks to the else block and executes its statement. In some cases, developers must execute the code blocks on different conditions. For that, they require to write multiple if-else statements of ladder of if-else statements. Here, we will convert that ladder of if-else statements to switch case statements. Converting If-else conditions to Switch Statement in TypeScript Here, ...
Read MoreWhat is Voltage Regulator 7805 – Internal Block Diagram and Applications
In this article, we will discuss the definition, internal block diagram, circuit configuration, and applications of voltage regulator 7805 IC. Let’s begin with the basic introduction of voltage regulator. A voltage regulator is an essential element of power supplies used in several electrical and electronic devices such as computers, amplifier, automobile alternator, mobile chargers, etc. A voltage regulator is basically an electronic circuit that generates a regulated voltage of fixed value from an unregulated fluctuating voltage. A voltage regulator is required in a circuit because all voltage sources cannot provide a steady voltage due to change in the load current ...
Read MoreWhat is the Nature of Electricity?
Electricity is form of energy that is obtained from other form of energy such as chemical energy, nuclear energy, heat energy, solar energy, etc. available in the nature. Electricity is the phenomenon associated with the existence and motion of the electric charge in the matter. This article is meant for explaining the nature of electricity. But before that we will understand the concept of electricity and is existence. The Concept of Electricity Electricity, also referred to as electrical energy, is a form of energy which is usually obtained from other forms of energy present in the nature. Electricity is a ...
Read MoreWhat is Space Charge – Definition, Causes, and Consequences
The collection of electrons (electric charge) at a short distance away from a metal surface forming a cloud of electric charge around the metal surface is known as space charge. These electrons are emitted from the metal surface on the application of electric field. In other words, the space charge is defined as the spatial distribution of electric charge within an insulating medium. In this article, we will discuss the definition and consequences of the space charge. What is Space Charge? As discuss above, the space charge is the accumulation or collection of electric charge in a particular region within ...
Read MoreWhat is Regulated Power Supply? – Circuit Diagram, Operation, and Applications
We have several electrical and electronic circuits that require a DC power supply to operate. But, due to some technical and economical limitations, we cannot use conventional sources of DC power such as batteries and DC generators. In this situation, we use an electronic circuit that can convert AC power into DC power, such a circuit is known as rectifier. However, the DC power output of a rectifier is a fluctuating DC voltage and current which may damage the electronic circuit. Thus, to overcome the problem of variation in voltage, some voltage regulating devices are used so that we can ...
Read MoreWhat is Open Circuit Voltage? – Definition, Calculation, and Example
In electrical and electronic circuits, the difference between potentials of two points is referred to as voltage or potential difference. Sometime we come across a term "open circuit voltage" while analyzing electric circuits. The term open circuit voltage is very common when we use Thevenin’s Theorem to analyze the circuit. Therefore, in this article, we will discuss what the open circuit voltage is, and how to calculate and test it. So let’s begin with a basic introduction of the open circuit voltage. What is Open Circuit Voltage? In an electric circuit, when a gap or open is created, and the ...
Read MoreWhat is Direct Current? – Definition, History, Measurement, and Applications
In electrical and electronics, the term electric current (or current) is used to represent the flow of electric charge (electrons or holes) in a particular direction. Hence, the electric current is simply defined as the directed flow of electrons (in metals), and electrons and holes (in semiconductors). In actual practice, the electric current can only flow through metals and semiconductors, while insulators block the flow of electric current through them. Based on the direction of flow, the electrical current is broadly classified into two types namely direct current (DC) and alternating current (AC). In this article, we will discuss the ...
Read MoreWhat is DC Voltage? – Definition, Circuit Symbol, and Wire Color Codes
In electrical and electronic circuits, the term voltagevoltage is used to denote the potential difference between two points. Based on the nature, the voltage can be of two types namely – AC Voltage and DC Voltage. In this article, we shall confine our attention to the DC Voltage only. Here, we will discuss the definition of DC voltage, its symbolic representation, DC wire color codes used in different electrical standards, and methods of DC voltage measurement. Let’s begin with the basic definition of DC voltage. What is DC Voltage? DC Voltage is an abbreviation of Direct Current Voltage. The voltage ...
Read More