exponentiation operator in javascript

4/18/2023
All Articles

#exponentiation in javascipt, #exponentiation symbol , #operator #arithmetic operator #javascipt

exponentiation  operator in javascript

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. 

Article