## Javascript Operators

Let us consider a simple expression. 7 + 5 equals 12  . The operands, in this case, are 7 and 5, and the operator, in this case, is '+.' The following operators are supported by JavaScript.

1. Comparison Operators
2. Arithmetic Operators
3. Assignment Operators
4. Ternary (Conditional) Operators
5. Relational (Logical) Operators
6. Bitwise Operators

Now, we'll be taking a look at each of these Javascript operators in detail. We'll be highlighting the operator, giving descriptions of each operator and examples of the operators.

### 1. Comparison Operators

For the examples under Comparison operators, assume variable X holds Five and variable Y has 10:

### 2. Arithmetic Operators

For the examples under Arithmetic operators, assume variable X holds Five and variable Y has 10:

### 4. Ternary (Conditional) Operators

The conditional operator examines an expression to determine if it is true or false and then runs one of the given two statements based on the outcome of the evaluation.

Run this code to see how Conditional Operators work in JS:

```<html>
<body>
<script type = "text/javascript">
<!--
var x = 20;
var y = 30;
var linebreak = "<br />";

document.write ("((x > y) ? 200 : 300) => ");
result = (x > y) ? 200 : 300;
document.write(result);
document.write(linebreak);

document.write ("((x < y) ? 200 : 300) => ");
result = (x < y) ? 200 : 300;
document.write(result);
document.write(linebreak);
//-->
</script>
<p>Run this code by TechStack...</p>
</body>
</html>```

### 5. Relational (Logical) Operators

For the examples under Relational (Logical) operators, assume variable X holds Five and variable Y has 10:

### 6. Bitwise Operators

Bit operators operate on numbers in 32 bits.

The operation converts any numeric operand into a 32-bit integer. The output is then returned as a JS number.