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

  1. Locate the volume of a square cube relying entirely on its side parameter.
  2. The specific math works as volume = side³.
  3. Yield the string specifically styled: "cube volume is [volume]".

01EXAMPLE 1

Inputside = 3
Output"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
JavaScript
Loading...
5 Hidden

Input Arguments

side3

Expected Output

cube volume is 27

Click RUN to test your solution