Finding Power
EasyAcc. 96.2%
+25 XP 8
Size Expansion
Sometimes making manual loops to calculate dimensions gets highly confusing. Modern developers rely firmly on Exponentiation (**) to effortlessly hit any base powers reliably.
The Assignment
- Locate the volume of a square cube relying entirely on its
sideparameter. - The specific math works as volume = side³.
- Yield the string specifically styled: "cube volume is [volume]".
01EXAMPLE 1
Input
side = 3Output
"cube volume is 27"Explanation: 3 ** 3 safely translates as 3 * 3 * 3 = 27.
Constraints
- Use the ** operator securely.
- Adhere exactly strictly to string spelling structure.
FundamentalsMathOperators
JavaScriptSystem handles I/O — write your function only
Loading...
5 Hidden
Input Arguments
side3
Expected Output
cube volume is 27
Click RUN to test your solution