Operators

Assignment Operator
Assignment operator, =, assigns values from the right side operand to the left side operand:
tutorial

Arithmetic Operators
JavaScript contains the following mathematical operators, which you can use with numbers:

tutorial

String Operator
There is just one string operator: the+ symbol. It is used to join the strings on either side of it. For example, you might have a first and last name in two separate variables and want to join them to show a full name. In this example, the variable called full Name would hold the string 'Ivy Stone':

tutorial

Comparison Operators
You can evaluate two values by comparing one with other. Result will be a boolean: true or false. JavaScript contains the following comparison operators:

tutorial

Logical Operators
Logical operators allow you to compare results of more than one comparison operator. Result will be a boolean: true or false. JavaScript contains the following logical operators:

tutorial

NEXT LESSON