JavaScript Operators

You are Here:

JavaScript Operators

JavaScript operators are certain symbols (+, -, etc.) that are used to perform mathematical operations, assign values, compare values, and more.

Assignment and Concatenation Operators

In the following example, the = operator is used to assign the value to the name variable and the + operator is used to concatenate the variable and the string in the document.write() method


HTML Online Editor
<!DOCTYPE html> <html> <body> <script> var name = "Steve Smith"; document.write("His name is "+ name); </script> </body> </html>

Dot Operator

In the following example, the . operator is used to get the specific property from the specified object.


HTML Online Editor
<!DOCTYPE html> <html> <body> <script> var bike = { company: "Honda", model: "CBR 1000RR", color: "Red" }; document.write("I like "+; </script> </body> </html>

Types of Operator

The following are the types of operators available in javascript

Types of OperatorSymbolic Representation
Arithmetic Operators+, -, *, **, /, %, ++, --
Comparison Operators==, ===, !=, !==, >, <, <=, >=
Logical Operators&&, ||, !
Bitwise Operators&, |, ~, ^, <<, >>, >>>
Conditional Operator?:
Comma Operator,
typeof Operatortypeof
delete Operatordelete
in Operatorin
instanceof Operatorinstanceof


Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in JavaScript.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author