- An operator is used to transform one or more value into a single resultant variable.
- The value to which the operator is applied is referred as operands.
- A combination of an operator and its operand referred as an Expression.
- for some operator such as multiplication (*) the order of the operand do not matter. for example A*Y=Y*A true for all integer and floating point number.
- Other operator like String concatenation (+), the order of operand matter. for example- "ab" +"cd" not same as "cd" +"ab".
lets take an example
<p>JavaSript + operator example with variable</p>
txt1 = "welcome to";
txt2 = " MCN IT SOLUTION ";
txt3 = txt1 + txt2;
document.getElementById("demo").innerHTML = txt3;
when we run above program
The table having some Arithmetic operator
||add two operand
||subtract second operand from first one
||multiply both operand
||divide numerator by denumerator
You may also want to read these related articles :
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here