告诉我们发生了什么:
在此详细描述你的问题。
测试显示
*functionWithArgs 应该是一个函数。 functionWithArgs(1,2)
应该输出 3
。
functionWithArgs(7,9)
应该输出 16
。
在定义 functionWithArgs
之后记得传入两个数字调用它。
你目前的代码
functionWithArgs()
function functionWithArgs(1,2){
console.log(3);
}
functionWithArgs()
function functionWithArgs(7,9){
console.log(16);
}
functionWithArgs()
function functionWithArgs(1,2){
console.log(3);
}
functionWithArgs()
function functionWithArgs(7,9){
console.log(16);
}
你的浏览器信息:
用户代理是: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.41
挑战: 基础 JavaScript - 将值传递给带有参数的函数
挑战的链接: