What are Arithmetic Operators in JavaScript?

The symbols that are used to do mathematical work are called JavaScript Arithmetic Operators.

All of the following Arithmetic Operator supports JavaScript

To understand the table below, we will take the variable var a = 10 and var b = 5

What are Comparison Operators in JavaScript?

The symbols in JavaScript that are used to compare two variables with one another are called Comparison Operators in JavaScript terminology.

All of the following Comparison Operator supports JavaScript

To understand the table below, we will take the variable var a = 10 and var b = 5

What is Assignment Operator in JavaScript?

The symbols used in JavaScript to store a value between Variable or Constant permanently or temporarily is called Assignment Operator in JavaScript.

All of the following Assignment Operator supports JavaScript

To understand the table below, we will take the variable var a = 10 and var b = 5

What are String Operators in JavaScript?

Symbols or symbols in JavaScript that use the “+” symbol to connect two or more string variables or Strings with Number or just string to one another, in JavaScript terminology it is called String Operators.

Example:

What is the Increment / Decrement Operator in JavaScript?

The (++) symbol is used to increase the value of any variable one by one in JavaScript, and similarly the (- -) symbol is used to decrease the value of any variable one by one. Who are called Increment and Decrement Operator respectively.

Types of Increment / Decrement Operator in JavaScript

To understand the table below, we will take the variable var a = 2

Let us understand Pre-increment from the following example.

Explanation: Here we have the value of a variable 1. When we connect (++) in front of a variable. Then the value of a variable is first increased by 1 to 2, then 2 is printed.

Let us understand Post-increment from the following example.

Explanation: Here the value of our \$ b variable was 1. When we add (++) to the end of the \$ a variable. Then the value of \$ a variable will first print e. And we will get what has been increased by printing on the next line.

Let us understand Pre-Decrement from the following example.

Explanation: Here we had the value of a variable 2. When we connect (- -) in front of a variable. Then the value of a variable is first reduced to 1, then 1 is printed.

Let us understand Post-decrement from the following example.

Explanation: Here we had the value of b variable 2. When we add (- -) to the end of b variable. Then the value of the variable b will first print 2. And we will get what has been reduced by printing on the next line.

What are Logical Operators in JavaScript and how do Logical Operators work?

Operators in JavaScript that make decisions based on two or more conditions.

All of the following Logical Operator supports JavaScript

What is Ternary Operator in JavaScript?

According to the Oxford English Dictionary, the word Ternary means “made up of three parts”. As the name suggests, the Ternary Operator in JavaScript is a Conditional Operator consisting of three parts: Condition? Expression 1: Expression 2. If the condition is true, then Expression 1 will return otherwise Expression 2 will return. The Ternary Operator is a lot like the if el .else statement. Let’s look at the following example:

What are Type Operators in JavaScript?

There are two Type Operators in JavaScript, the first being the instanceof operator, which is used to check if a particular variable is an instance of a class. Another is typeof Operator, which is used to check the type of a variable or value.

What is the delete operator in JavaScript?

In JavaScript, the delete operator is used to delete a specific property of an object.

What is JavaScript in Operator?

JavaScript uses the in Operator to find the specific property of an object or array.