0% found this document useful (0 votes)
36 views

J S Operators: AVA Cript

The document discusses different types of operators in JavaScript including arithmetic, assignment, string, comparison, logical, and conditional operators. Arithmetic operators perform math operations on numbers, assignment operators assign values to variables, string operators can concatenate strings, comparison operators compare values, logical operators test for true/false logic, and conditional operators assign a value to a variable based on a condition.

Uploaded by

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

J S Operators: AVA Cript

The document discusses different types of operators in JavaScript including arithmetic, assignment, string, comparison, logical, and conditional operators. Arithmetic operators perform math operations on numbers, assignment operators assign values to variables, string operators can concatenate strings, comparison operators compare values, logical operators test for true/false logic, and conditional operators assign a value to a variable based on a condition.

Uploaded by

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

J AVA S CRIPT

OPERATORS
P R E S E N T E D BY G R O U P V I
J AVA S C RI PT
ARITHMETIC
OPERATORS
ASSIGNING VALUES TO
VARIABLES
ARITHMETIC OPERATORS ARE USED TO
PERFORM ARITHMETIC ON NUMBERS
(LITERALS OR VARIABLES).
ARITHMETIC OPERATIONS
A T Y P I C A L A R I T H M E T I C O P E R AT I O N O P E R AT E S O N T W O
NUMBERS.
OPERATORS AND OPERANDS
T H E N U M B E R S ( I N A N A R I T H M E T I C O P E R AT I O N ) A R E C A L L E D O P E R A N D S .

T H E O P E R AT I O N ( T O B E P E R F O R M E D B E T W E E N T H E T W O O P E R A N D S ) I S D E F I N E D B Y
A N O P E R AT O R .
OPERATOR PRECEDENCE
O P E R AT O R P R E C E D E N C E D E S C R I B E S T H E O R D E R I N W H I C H O P E R AT I O N S
A R E P E R F O R M E D I N A N A R I T H M E T I C E X P R E SS I O N .
J AVA S C R I P T
ASSIGNMENT
O P E RAT O R S
ASSIGNMENT OPERATORS ASSIGN
VALUES TO JAVASCRIPT VARIABLES.
OTHERS:
J AVA S C RI PT
STRING
OPERATORS
JAVASCRIPT STRINGS ARE USED FOR
STORING AND MANIPULATING TEXT.
THE + OPERATOR CAN ALSO BE USED
TO ADD (CONCATENATE) STRINGS.
J AVA S C R I P T
C O M PA R I S O N
& LO G I C A L
O P E RAT O R S
COMPARISON AND LOGICAL
OPERATORS ARE USED TO
TEST FOR TRUE OR FALSE.
C O M PA R I S O
N O P E RAT O R
COMPARISON OPERATORS ARE
USED IN LOGICAL STATEMENTS
TO DETERMINE EQUALITY OR
DIFFERENCE BETWEEN
VARIABLES OR VALUES.
EXAMPLE
G I V E N T H AT X = 5

FALSE

TRUE

TRUE

TRUE

FALSE

TRUE

FALSE

TRUE

TRUE
COMPARISON OPERATORS CAN
BE USED IN CONDITIONAL
STATEMENTS TO COMPARE
VALUES AND TAKE ACTION
DEPENDING ON THE RESULT
LO G I C A L
O P E RAT O R
LOGICAL OPERATORS ARE
USED TO DETERMINE THE
LOGIC BETWEEN VARIABLES
OR VALUES.
EXAMPLE
G I V E N T H AT X = 6 A N D Y = 3

IS
TRUE

IS
FALSE

IS
TRUE
CONDITIONA
L ( T E R N A RY )
O P E RAT O R
JAVASCRIPT ALSO CONTAINS A
CONDITIONAL OPERATOR THAT
ASSIGNS A VALUE TO A
VARIABLE BASED ON SOME
CONDITION.

You might also like