CodesJava

Easy learning with example program codes

JavaScript math cbrt() method

The JavaScript math cbrt() method is used to get the cube root of a number.
Syntax:

Math.cbrt(n)

Parameters
n: It represents the number whose cube root have to be get.

Returns
Cube root value of a number.

Example

<!DOCTYPE html>
<html>
<body>
<script>  
document.writeln(Math.cbrt(125));  
</script>  
</body>
</html>

Output

5
Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status