-2 javascript
const horn = () => {
console.log("Toot");
};
console.log(horn());Run Code Online (Sandbox Code Playgroud)
我得到的输出为
嘟嘟未定义
但我不明白为什么会这样
你的号角功能不会返回任何东西......
const horn = () => {
return 'horn';
};
const horn2 = () => {
console.log('horn');
};
console.log(horn());
horn2();Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
76 次 |
| 最近记录: |