Operators in Hindi

Operators In JavaScript in Hindi – Operators in Hindi

JavaScript

Operators In JavaScript in HindiOperators in Hindi – JS Operators Ka Istemal Variable Ko operate Karne Ke Liye Kiya Jata Hain And JavaScript Me Koi Types Ke Operators Hote Hain |

  • Assignment operators
  • Arithmetic operators
  • Comparison operators
  • Increment/Decrement operators
  • Logical operators
  • String operators
  • Array operators
  • Conditional assignment operators

Operators In JavaScript in Hindi

Waise To Har Programming Language Main Operators Ka Istemal Kiya Hain And Ab Ham Ek Ek Karke Step By Step Har Operators Ko Dekhne Wale Hai With Example Ke Sath |

Js Assignment Operators In Hindi

Assignment Operators Ka Ham Variable Main Value Assign Karne Ke Liye Istemal karte Hain |

Example:

<script>
  
var x = 5;  // Assingment Operators
var y = 2; 	// Assingment Operators

</script>

Js Arithmetic Operators In Hindi

Arithmetic Operators Ka Istemal numeric values Ko arithmetical operations Ke Sath Istemal Kiya Hain – such as addition, subtraction, multiplication etc.

OperatorExampleSame As
=x = yx = y
+=x += yx = x + y
-=x -= yx = x – y
*=x *= yx = x * y
/=x /= yx = x / y
%=x %= yx = x % y
**=x **= yx = x ** y

Example:

<script>
  
var x = 5;
var y = 2;
z = x+y;
document.write("The Addition Is : " + z + "<br\>")
z = x-y ;
document.write("The Subs Is : " + z + "<br\>")
z = x*y;
document.write("The Multiply Is : " + z + "<br\>")
z = x/y;
document.write("The Divide Is : " + z + "<br\>")
z = x%y;
document.write("The Modulas Is : " + z + "<br\>")
z = x**y;
document.write("The Power Is : " + z + "<br\>")

</script>

Output:

The Addition Is : 7
The Subs Is : 3
The Multiply Is : 10
The Divide Is : 2.5
The Modulas Is : 1
The Power Is : 25

Js Comparison Operators In Hindi

Comparison Operators Ka Istemal Two Values Ko Compare Karne Ke Liye Kiya Jata Hain – ( Number , String ) |

OperatorDescription
==equal to
===equal value and equal type
!=not equal
!==not equal value or not equal type
>greater than
<less than
>=greater than or equal to
<=less than or equal to
?ternary operator

Is Comparison Operators Ko Ham Next If Else If-else Part Main Dekhne Wale Hain |

Js Increment/Decrement Operators In Hindi

PHP increment operatos ka istemal variable ki value ko increment karne ke liye Istemal Kiya Jata Hain |

Also Read –

PHP Decrement operatos ka istemal variable ki value ko Decrement karne ke liye Istemal Kiya Jata Hain |

OperatorNameDescription
++xPre-incrementIncrements x by one then returns x
x++Post-incrementReturns x, then increments x by one
-–xPre-decrementDecrements x by one then returns x
x–-Post-decrementReturns x, then decrements x by one

Example:

<script>
  
var x = 5;
document.write("The Current Value Is : " + x + "<br\>")
++x
document.write("The Value Is : " + x + "<br\>")
x++
document.write("The Value Is : " + x + "<br\>")
--x
document.write("The Value Is : " + x + "<br\>")
x--
document.write("The Value Is : " + x + "<br\>")

</script>

Output:

The Current Value Is : 5
The Value Is : 6
The Value Is : 7
The Value Is : 6
The Value Is : 5

Js Logical Operators In Hindi

Js Logical Operatos Ka Istemal Conditional Statements Ko Combine Karne Ke Liye Kiya Jata Hain |

OperatorNameExampleResult
andAndx and yTrue if both x and y are true
orOrx or yTrue if either x or y is true
xorXorx xor yTrue if either x or y is true, but not both
&&Andx && yTrue if both x and y are true
||Orx || yTrue if either x or y is true
!Not!xTrue if x is not true

Is Logical Operators Ko Ham Next If Else If-else Part Main Dekhne Wale Hain |

Js String Operators In Hindi

Js Main Strings Ke Liye Two Operators Keval Design Kiye Hain Jo Niche Diye Gaye Hain |

OperatorNameExampleResult
+Concatenationtxt1 + txt2Concatenation of txt1 and txt2

Example:

<script>
var x = "5" + 5;
document.write("Value Is : " + x + "<br\>")

var txt1 = "What a very ";
txt1 += "nice day";
document.write("Value Is : " + txt1 + "<br\>")

var txt1 = "John";
var txt2 = "Doe";
var txt3 = txt1 + " " + txt2;
document.write("Value Is : " + txt3 + "<br\>")
</script>

Output:

Value Is : 55
Value Is : What a very nice day
Value Is : John Doe

Js Array Operators In Hindi

Js Array Operators Ka Istemal Arrays Ko Compare Karne Ke Liye Kiya Jata Hain |

Is Array Operators Ko Ham Next If Else If-else Part Main Dekhne Wale Hain.

Also Read –

Friends Mujhe Umeed Hai Ki Aapko Operators In Js In Hindi Ke Bare Mai 100% Jankari Ho Gayi Hogi | Agar Aapko Learn Karne Main Dikkat Aa Rahi Hai To Aap Mere Se Contact Kar Sakte Hai |

Leave a Reply

Your email address will not be published. Required fields are marked *