22 July 2021

Exponent operator in javascript

const data = 2 ** 4;
//same as :Math.pow(2,4);
console.log(data);

Output:

16           

Github link : https://github.com/adi501/JavaScriptExamples.git

 

No comments:

Post a Comment