【Edabit 算法 ★☆☆☆☆☆】【修改BUG1】 Buggy Code (Part 1)

【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'
}
相关推荐
RTC老炮20 分钟前
webrtc弱网-RobustThroughputEstimator源码分析与算法原理
网络·算法·webrtc
听风吹等浪起36 分钟前
分类算法-逻辑回归
人工智能·算法·机器学习
敲代码的嘎仔38 分钟前
JavaWeb零基础学习Day2——JS & Vue
java·开发语言·前端·javascript·数据结构·学习·算法
yacolex1 小时前
3.3_数据结构和算法复习-栈
数据结构·算法
茉莉玫瑰花茶1 小时前
动态规划 - 两个数组的 dp 问题
算法·动态规划
微笑尅乐2 小时前
从暴力到滑动窗口全解析——力扣8. 字符串转换整数 (atoi)
算法·leetcode·职场和发展
火花怪怪2 小时前
LaMer结晶动力学模型
算法
legendary_bruce2 小时前
【22.2 增强决策树】
算法·决策树·机器学习
老马啸西风3 小时前
力扣 LC27. 移除元素 remove-element
算法·面试·github
数智顾问3 小时前
中秋特别篇:使用QtOpenGL和着色器绘制星空与满月——从基础框架到光影渲染
算法