Skip to content

9. What are Javascript arithmetic Operators in Hindi?

    arithmetic Operators in Hindi

    Introduction of arithmetic Operators in Hindi

    इस लेख मे हम arithmetic operators के बारे मे detail मे जानेंगे।

    यहा नीचे arithmetic operators की list दी गई है।


    Javascript arithmetic Operators in Hindi

    OperatorsDescription
    +Addition ( add two or more operands)
    Subtraction (Subtract two or more operands)
    *Multiplication (multiply two or more operands)
    **Exponentiation
    /Division (divide two or more operands)
    %Modulus (Remainder of Division)
    ++Increment
    Decrement

    Addition Arithmetic Operators in Hindi

    Operands को add करने के लिये addition operator (+) का इस्तेमाल किया जाता है।

    उदाहरण

    <!DOCTYPE html>
    <html>
    <body>
    	<p>Addition Arithmetic  Operator</p>
    	<p id="one"></p>
    	<script>
    		var a = 75;
    		var b = 45;
    		var x = a + b;
    		document.getElementById("one").innerHTML = x;
    	</script>
    </body>
    </html>
    

    Subtraction Arithmetic Operators in Hindi

    Operands को Subtract करने के लिये Subtraction operator (-) का इस्तेमाल किया जाता है।

    उदाहरण

    <!DOCTYPE html>
    <html>
    <body>
    	<p>Subtraction  Arithmetic  Operator</p>
    	<p id="one"></p>
    	<script>
    		var a = 75;
    		var b = 45;
    		var x = a - b;
    		document.getElementById("one").innerHTML = x;
    	</script>
    </body>
    </html>
    

    Multiplication Arithmetic Operators in Hindi

    Operands को multiply करने के लिये Multiplication operator (*) का इस्तेमाल किया जाता है।

    उदाहरण

    <!DOCTYPE html>
    <html>
    <body>
    	<p>Multiplication  Arithmetic  Operator</p>
    	<p id="one"></p>
    	<script>
    		var a = 75;
    		var b = 45;
    		var x = a * b;
    		document.getElementById("one").innerHTML = x;
    	</script>
    </body>
    </html>
    

    Exponentiation Arithmetic Operators

    यह पहले operand को दूसरे operand के power के जितना rise करता करता है।

    उदाहरण

    <!DOCTYPE html>
    <html>
    <body>
    	<p>Exponentiation  Arithmetic  Operator</p>
    	<p id="one"></p>
    	<script>
    		var a = 7;
    		var b = 2;
    		var x = a ** b;
    		document.getElementById("one").innerHTML = x;
    	</script>
    </body>
    </html>
    

    Division Arithmetic Operators

    Operands को divide करने के लिये division operator (/) का इस्तेमाल किया जाता है।

    उदाहरण

    <!DOCTYPE html>
    <html>
    <body>
    	<p>Division  Arithmetic  Operator </p>
    	<p id="one"></p>
    	<script>
    		var a = 7;
    		var b = 2;
    		var x = a / b;
    		document.getElementById("one").innerHTML = x;
    	</script>
    </body>
    </html>
    

    Modulus Arithmetic Operators

    Modulus operator division remainder को return करता है।

    उदाहरण

    <!DOCTYPE html>
    <html>
    <body>
    	<p>Modulus  Arithmetic  Operator  </p>
    	<p id="one"></p>
    	<script>
    		var a = 7;
    		var b = 2;
    		var x = a %% b;
    		document.getElementById("one").innerHTML = x;
    	</script>
    </body>
    </html>
    

    Increment Arithmetic Operators

    Operand को एक से बढ़ाने के लिये Increment arithmetic operator का इस्तेमाल होता है।

    उदाहरण

    <!DOCTYPE html>
    <html>
    <body>
    	<p>Increment  Arithmetic  Operator </p>
    	<p id="one"></p>
    	<script>
    		var a = 7;
    		a++ ;
    		var x = a;
    		document.getElementById("one").innerHTML = x;
    	</script>
    </body>
    </html>
    

    Decrement Arithmetic Operators

    Operand को एक से धटाने के लिये decrement arithmetic operator का इस्तेमाल होता है।

    उदाहरण

    <!DOCTYPE html>
    <html>
    <body>
    	<p>Decrement  Arithmetic  Operator </p>
    	<p id="one"></p>
    	<script>
    		var a = 7;
    		a-- ;
    		var x = a;
    		document.getElementById("one").innerHTML = x;
    	</script>
    </body>
    </html>
    

    Operator priority

    Arithmetic expression मे कौन सा operation पहले होगा ये operator priority से पता चलता है।

    Multiplication(*) and division(/) को addition(+) and subtraction(-) से higher priority दी जाती है।

    उदाहरण

    <!DOCTYPE html>
    <html>
    <body>
    	<p>Operator priority</p>
    	<p id="one"></p>
    	<script>
    		document.getElementById("one").innerHTML = 7+2*3+6/3-1;
    	</script>
    </body>
    </html>
    

    यहा उदाहरण मे multiplication and division पहले होगा उसके बाद addition और subtraction होगा।

    Next : JavaScript Assignment Operators in Hindi

    Leave a Reply

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