【Edabit 算法 ★☆☆☆☆☆】【修改BUG1】 Buggy Code (Part 1)
bugs
language_fundamentals
Instructions
Fix the code in the code tab to pass this challenge (only syntax errors). Look at the examples below to get an idea of what the function should do.
Examples
javascript
cubes(3) // 27
cubes(5) // 125
cubes(10) // 1000
Notes
- READ EVERY WORD CAREFULLY, CHARACTER BY CHARACTER!
- Don't overthink this challenge; it's not supposed to be hard.
Solutions
javascript
function cubes(a) {
return a ** 3 // `retunr` 改为 'return'
}