← Back to challenges

Cube the Square Root

JavaScriptHardalgebramathnumbers

Instructions

Create a function that takes a number as an argument and returns the square root of that number cubed.

Examples

cubeSquareRoot(81) ➞ 729

cubeSquareRoot(1646089) ➞ 2111932187

cubeSquareRoot(695556) ➞ 580093704

Notes

All numbers will evenly square root, so don't worry about decimal numbers.

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Unlucky 13