TypeScript Relational operators
In TypeScript, relational operators are used to compare two values and determine the relationship between them.
Name |
Description |
Syntax |
---|---|---|
Equal to ( |
Returns |
result = operand1 == operand2; |
Not equal to ( |
Returns |
result = operand1 != operand2; |
Strictly equal to ( |
Returns |
result = operand1 === operand2; |
Strictly not equal to ( |
Returns |
result = operand1 !== operand2; |
Greater than ( |
Returns |
result = operand1 > operand2; |
Less than ( |
Returns |
result = operand1 < operand2; |
Greater than or equal to ( |
Returns |
result = operand1 >= operand2; |
Less than or equal to ( |
Returns |
result = operand1 <= operand2; |
TypeScript Operators
TypeScript operators are symbols or keywords that perform operations on one or more operands. In this article, we are going to learn various types of TypeScript Operators.
Below are the different TypeScript Operators:
Table of Content
- TypeScript Arithmetic operators
- TypeScript Logical operators
- TypeScript Relational operators
- TypeScript Bitwise operators
- TypeScript Assignment operators
- TypeScript Ternary/conditional operator
- TypeScript Type Operators
- TypeScript String Operators
Contact Us