0% found this document useful (0 votes)
10 views13 pages

Exam Session 3

The document provides an overview of various types of operators in TypeScript, including Arithmetic, Comparison, Logical, and Assignment Operators. It details the signs and functions of Comparison Operators, Logical Operators, and Assignment Operators, explaining their roles in comparing values, making decisions, and assigning values to variables. Examples are mentioned but not provided in the text.

Uploaded by

11ahmedansari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views13 pages

Exam Session 3

The document provides an overview of various types of operators in TypeScript, including Arithmetic, Comparison, Logical, and Assignment Operators. It details the signs and functions of Comparison Operators, Logical Operators, and Assignment Operators, explaining their roles in comparing values, making decisions, and assigning values to variables. Examples are mentioned but not provided in the text.

Uploaded by

11ahmedansari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Session -

TYPESCRIPT

Operators
Types of Operators
Arithmetic Operators

Comparison Operators

Logical Operators

Assignment Operators
Comparison Operators
Comparison Operators are used to compare
two values or expressions.

They return a Boolean value (either TRUE or


FALSE) based on the comparison result.
Comparison Operators
Name: Signs:

Equal to ==
Not equal to !=
Strict equal to ===
Greater than >
Less than <
Greater or equal to >=
Less or equal to <=
Examples
Logical Operators
Logical operators are like Decision-making tools.

Logical Operators help us make smart decisions in


our programs by combining different conditions.

They help us express complex conditions more


clearly and efficiently.
Logical Operators
Logical operators in TypeScript :

Name: Signs:

Logical (AND) &&


Logical (OR) ||
Logical (NOT) !
Examples
Assignment Operators
Assignment operators are used to assign values
to Variables.

They are shorthand notations to perform an


operation on a variable and then assign the result
back to the same variable.
Assignment Operators
Assignment operators are :
Name: Signs:

Assignment =
Addition Assignment +=
Subtraction Assignment -=
Multiplication Assignment *=
Division Assignment /=
Examples
@CodeWithHamza

Thank You LinkedIn/HamzaMirza

Instagram/codewithhamzaofficial

[email protected]

You might also like