exponentiation in javascipt, #exponentiation symbol , #operator #arithmetic operator #javascipt
Exponentiation operator in javascript
The result of increasing the first operand to the power of the second operand is returned by the exponentiation (**) operator.
• The exponentiation operator (**) raises the first operand to the power of the second operand.
Example
let x = 5;
let z = x ** 2;
o/p= 5sq=25
• x ** y produces the same result as Math.pow(x,y):
Example
let x = 5;
let z = Math.pow(x,2);
Conclusion:
There has been rapid development and changes in information technology plateform. so javascript is tranding in market .We write article on exponentiation operator and there is many operator like Arithmetic Operators; Assignment Operators; Comparison Operators; String Operators; Logical Operators .see you in next topic of javascript .If you feel any doubt and query please connect on social medium patform on below in bottom.
find below List of different operator in Javascript
- JS Arithmetic Operators
- JS Assignment Operators
- JS Comparison Operators
- JS Logical Operators
- JS Ternary Operators
- JS Bitwise Operators
- JS typeof Operator
Top comments (0)