JavaScript Operators
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
Example
Dot Operator
In the following example, the .
operator is used to get the specific property from the specified object.
Example
Types of Operator
The following are the types of operators available in javascript
Types of Operator | Symbolic Representation |
---|---|
Arithmetic Operators | +, -, *, **, /, %, ++, -- |
Comparison Operators | ==, ===, !=, !==, >, <, <=, >= |
Logical Operators | &&, ||, ! |
Bitwise Operators | &, |, ~, ^, <<, >>, >>> |
Conditional Operator | ?: |
Comma Operator | , |
typeof Operator | typeof |
delete Operator | delete |
in Operator | in |
instanceof Operator | instanceof |
Reminder
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.