Articles on Trending Technologies

Technical articles with clear explanations and examples

For the Hosts Locale how to convert a string to uppercase letters in JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Nov-2022 370 Views

In this tutorial, we will learn how to convert a string to uppercase letters for the host's locale in JavaScript. While using a locale language to write for a website, we might have to convert the sentence from lowercase to uppercase without changing the structure of the string. Using the toLocaleUpperCase() Method In JavaScript, we use the toUpperCase() Method as well as the toLocaleUpperCase() to change the letters of a string to uppercase. Although both methods give similar output the toLocaleUpperCase() is used primarily for local languages. Syntax We will use the following syntax to convert the letters of the ...

Read More

How to set the left margin of an element with JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Nov-2022 5K+ Views

In this tutorial, we will learn how to set the left margin of an element with JavaScript. Margin is the space around an element outside its border. The margin of an element can be on all sides, such as: left, right, top, and bottom. Use the marginLeft property in JavaScript to set the left margin. In this tutorial, we will discuss two approaches to setting the left margin − Using the marginLeft property Using the setProperty method Using the marginLeft property to set the left margin of an element The marginLeft property of an element in JavaScript is ...

Read More

How to set the inward offsets of the image border with JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Nov-2022 287 Views

In this tutorial, we will learn how to set the inward offsets of the image border with JavaScript. An image can be set in the border as a border image using CSS properties. The border image can be set using different parameters. To set the inward offsets of the image border, use the borderImageSlice property in JavaScript. We will see two different approaches to setting up the inward offsets of the image border with JavaScript − The borderImageSlice Property The setProperty Method Using the borderImageSlice Property The border image’s inward offsets are specified by the borderImageSlice property of ...

Read More

How to set the initial length of a flexible item with JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Nov-2022 448 Views

In this tutorial, we will learn how to set the initial length of a flexible item with JavaScript. Flexbox is a one-dimensional layout model that distributes space among items in an interface and provides flexible item alignment properties. It creates flexible items. Use the flexBasis property in JavaScript to set the initial length of a flexible item. In this tutorial, we will see two approaches to setting the initial length of a flexible item − Using the property style.flexBasis Using the method style.setProperty Using the style.flexBasis Property The style flexBasis is a flexbox property that determines the initial ...

Read More

How to set the indentation of the first line of text with JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Nov-2022 2K+ Views

In this tutorial, we will learn how to set the indentation of the first line of text with JavaScript. The indentation of the first line of a text is a common way to start a new paragraph. To set the indentation, use the textIndent property. To set the indentation of the first line of text with JavaScript, we will discuss two different ways − Using the style.textIndent Property Using the style.setProperty Method Using the style.textIndent Property The style.textIndent property of an element is used to set the indentation of the first line of text. This property is placed ...

Read More

What is the Plum Pudding Model of the Atom?

Manish Kumar Saini
Manish Kumar Saini
Updated on 15-Nov-2022 2K+ Views

There were several theories stated to explain the arrangement of subatomic particles. The Plum Pudding Model, also known as Thomson’s Plum Pudding Model, is also a scientific model for explaining the arrangement of subatomic particles. This model was first proposed by a British physicist Sir J. J. Thomson in 1904. This model was stated soon after the discovery of the electron, but prior to the discovery of the nucleus of the atom. According to the plum pudding model, "a volume of positive charge surrounds electrons in an atom, like negatively charged plums embedded in a positively charged pudding." Hence, it ...

Read More

Basic Circuit Elements – Resistor, Inductor and Capacitor

Manish Kumar Saini
Manish Kumar Saini
Updated on 15-Nov-2022 21K+ Views

In electrical and electronics engineering, we frequently come across two terms "circuit" and "circuit element". Where, an electric circuit element is the most elementary building block of an electric circuit, and the electric circuit is an interconnection of different circuit elements connected in a fashion so they form a closed path for current to flow. Technically, an electric circuit element is the mathematical model of an electrical device and can be completely characterized by its voltage and current relationship. Also, a circuit element being the most basic building block cannot be subdivided into other devices. There are three most basic ...

Read More

Basic Electrical Quantities – Charge, Current, Voltage, Power and Energy

Manish Kumar Saini
Manish Kumar Saini
Updated on 15-Nov-2022 8K+ Views

In electrical and electronic circuits, there are five major electrical quantities that used to analyze circuits. These quantities are electric charge, electric current, voltage, electric power and electrical energy. In this article, we shall learn about these quantities in detail. What is Electric Charge? Electric charge or simply charge is the property of subatomic particles like protons and electrons. The electric charge is denoted by symbol Q or q and measured in Coulombs (C). Technically, electric charge is the concept which explains the electrical behavior of materials. Therefore, it is the electric charge that forms the basis of existence of ...

Read More

Basic Logic Gates – Definition, Types, Boolean Function, and Truth Table

Manish Kumar Saini
Manish Kumar Saini
Updated on 15-Nov-2022 2K+ Views

In digital electronics, basic logic gates are the important components of all digital devices and systems. A logic gate is a digital circuit whose operation is based on the Boolean function. Thus, logic gates are used for performing different logical operations on binary inputs to produce a binary output. Therefore, we can simply state that logic gates are the basic building blocks of digital devices and systems. All digital systems like computers are able to perform very complex logic operations, and these operation are performed by the interconnected system of basic logic gates. This interconnection of logic gates to perform ...

Read More

Electron Theory of Matter and Atoms

Manish Kumar Saini
Manish Kumar Saini
Updated on 15-Nov-2022 4K+ Views

The electron theory of matter is one of the most successful and experimentally proved theory that can explain the nature of electricity. Although the study of electricity has been attracting the attention of scientists for several hundred years, and there were several experiments and theories developed to understand the nature of electricity. The only theory that has explained it successfully is the electron theory of matter. The electron theory of matter is the result of experiments and researches conducted by many scientists like J. J. Thomson, R. A. Millikan, Earnest Rutherford and Bohr. This article is meant for explaining the ...

Read More
Showing 30351–30360 of 61,248 articles
Advertisements