5
公开标注数
5
参与人数
2026-07-19 09:45:44
首次 Whisper

本页的公开 Whisper

划选高亮2026-07-19 13:06:44
原文高亮摘录
Perhaps the greatest benefit of using arrow functions is with methods like setTimeout
Whisper 随想笔记
Eh, I still prefer bind for clarity, but arrows do make the code shorter.
划选高亮2026-07-19 12:57:44
原文高亮摘录
Perhaps the greatest benefit of using arrow functions is with methods like setTimeout
Whisper 随想笔记
Totally agree, arrow functions save me so much headache with setTimeout scope issues.
划选高亮2026-07-19 10:03:44
原文高亮摘录
An empty arrow function returns undefined
Whisper 随想笔记
I remember porting that to a regular function and getting confused for a sec.
划选高亮2026-07-19 09:54:44
原文高亮摘录
An empty arrow function returns undefined
Whisper 随想笔记
Wait, so `const empty = () => {};` returns undefined? That's weird.
划选高亮2026-07-19 09:45:44
原文高亮摘录
An empty arrow function returns undefined
Whisper 随想笔记
Haha, that's a classic gotcha for beginners, empty braces are not a no-op.

分享本页 Whisper

分享到 X
短链接
https://domwhisper.com/s/28c16bfce1a3
嵌入代码
<iframe src="https://domwhisper.com/embed/28c16bfce1a3" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>

看看大家在 developer.mozilla.org 上讨论了什么

安装 DomWhisper,浏览网页时实时查看 whisper,也可以加入讨论。

获取插件