# JavaScript Course Operators in JavaScript

An operator is capable of manipulating a certain value or operand. Operators are used to performing specific mathematical and logical computations on operands. In other words, we can say that an operator operates the operands. In JavaScript, operators are used for comparing values, performing arithmetic operations, etc.

There are various operators supported by JavaScript, like Arithmetic, Assignment, Bitwise, Comparison, Logical, Ternary, and typeof and there are lots of other operators that you can learn.

Arithmetic Operators: These operators work on numerical values and then return a number. These are basically used to perform mathematical operations but we can also use them on strings to concatenate the strings.

JavaScript Arithmetic Operators: This table contains the operators’ names, operations, and a pseudo-code of example.

JavaScript Comparison Operators: This table contains the operators’ names, operations, and a pseudo-code of example.

Comparison Operators: These comparison operators are mainly used to perform the logical operations that determine the equality or difference between the values.

Bitwise Operators: These operators uses 32 bits BItwise operands. A number is stored as a 64-bit floating-point number but the bit-wise operation is performed on a 32-bit binary number.

JavaScript Bitwise Operators: This table contains the operators’ names, operations, and a pseudo-code of example.

Logical Operators: These logical operator is mostly used to make decisions based on conditions specified for the statements. It can also be used to manipulate a boolean or set termination conditions for loops.

JavaScript Logical Operators: This table contains the operators’ names, operations, and a pseudo-code of example.

Assignment Operators: These assignment operator is equal (=) which assigns the value of the right-hand operand to its left-hand operand. That is if a = b assigns the value of b to a.

JavaScript Assignment Operators: This table contains the operators’ names, operations, and a pseudo-code of example.

JavaScript typeof Operator: In JavaScript, the typeof operator returns the data type of its operand in the form of a string. The operand can be any object, function, or variable.

Example:

## javascript

 `var` `a = 17; ` `var` `b = ``"GeeksforGeeks"``; ` `var` `c = ``""``; ` `var` `d = ``null``; ` ` `  `console.log(``"Type of a = "` `+ (``typeof` `a)); ` `console.log(``"Type of b = "` `+ (``typeof` `b)); ` `console.log(``"Type of c = "` `+ (``typeof` `c)); ` `console.log(``"Type of d = "` `+ (``typeof` `d)); ` `console.log(``"Type of e = "` `+ (``typeof` `e));`

Output:

```Type of a = number
Type of b = string
Type of c = string
Type of d = object
Type of e = undefined```

We have a complete list of Javascript Operators, to check those please go through this Javascript Operators Complete Reference article.

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Previous
Next