in JavaScript by

Which one of the following is correct output for the following given JavaScript code:

<p id="demo"></p>  


function Function1()  





a) 972

b) 81

c) 9

d) Error

1 Answer

0 votes

Answer: A

Reason: Here the code above uses the "cbrt ()" method, which returns the cube root of the number passed in parentheses as an argument. The "cbrt()" method is one of the several methods that are found in the library called math's available in the JavaScript.

Related questions

0 votes
asked Mar 24, 2021 in JavaScript by sharadyadav1986
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
+1 vote
asked Mar 22, 2021 in JavaScript by Robindeniel