+ 3
Is there another method to solve problem like this?
If we are going to calculate for the square root of a number in javascript, we can use the "Math.sqrt()" in order to get the square root. So, is there any other method to solve problem like this?
2 Answers
+ 3
//All three does the same
console.log (Math.sqrt(4))
console.log (4**0.5)
console.log (Math.pow(4,0.5))
+ 3
Louis thank you for sharing