This is the 6th continuation video of the JavaScript Tutorial Series. In the previous video, we discussed Arithmetic Operators; now, we will take a deep look into the Assignment and Specially Arithmetic Assignment Operators.
Following are the Types of JavaScript Operators
-----------------------------------------------------------------------------
1. Arithmetic Operators
2. Assignment Operators
3. Comparison Operators
4. String Operators
5. Logical Operators
6. Bitwise Operators
7. Ternary Operators
8. Type Operators
When a Variable gets a value assigned to it, it is called an Assignment and by which type of Operator it is done, is called an Assignment Operator. There are many types of assignment operators.
Let us talk about Simple Assignment Operators. Simple Assignments are just like arithmetic operators but followed by Equal to “=” sing. They just work like Arithmetic Operators but whenever any arithmetic calculation is done the new value is automatically assigned to the old declared variable.
Arithmetic Assignment Operator
---------------------------------------------------
SL. Operator Symbol
1. = (Simple Assignment Operator)
2. += (Assignment with Addition)
3. -= (Assignment with Sub.)
4. *= (Assignment with Multi.)
5. /= (Assignment with Division)
6. %= (Assignment with Modulus)
7. **= (Assignment with Expo.)
Comparison Operator
-------------------------------------
Sl. No. Comparison Operators Symbol
1. == (Implicit Comparison Operator)
2. === (Explicit Comparison Operator)
3. != (Implicit Comparison Operator)
4. !== (Explicit Comparison Operator)
More...
Logical Assignment Operators
------------------------------------------------------
Sl. No. Logical Assignment Operators Symbol
1. &&= (Logical AND Assignment Operator)
2. ??= (Logical NULLISH Coalescing Assignment Operator)
3. ||= (Logical OR Shift Assignment Operator)
******************************************************
website:- https://www.progrramers.com
Facebook Page:- / theprogrramers
Instagram: / c.kumar
**************************************************
Other Websites :
https://sarkarijobs.link
Auf dieser Seite können Sie das Online-Video JS Tutorials: What are Assignment Operators in JavaScript | JS mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Progrramers 04 Oktober 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 21 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!