JS Tutorials: What are Assignment Operators in JavaScript | JS

Pubblicato il: 04 ottobre 2023
sul canale di: Progrramers
21
2

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


In questa pagina del sito puoi guardare il video online JS Tutorials: What are Assignment Operators in JavaScript | JS della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Progrramers 04 ottobre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 21 volte e gli è piaciuto 2 spettatori. Buona visione!