Many people write `[removed]void(0)` instead of `[removed]void 0` in hrefs. Do the parentheses do anything?

后端 未结 3 874
执念已碎
执念已碎 2021-01-01 21:23

I see people write void(0) all the time, but I don\'t understand why people use parentheses. As far as I can tell, they have no purpose. void is no

3条回答
  •  难免孤独
    2021-01-01 22:14

    "So why do people use the parens?"

    People do silly things.

    "Do they serve a purpose?"

    No, they're not needed.

提交回复
热议问题