DEV Community

Discussion on: Why do we write JavaScript like this?

Collapse
anders profile image
Anders Author

That is great, how does that perform compared to what I wrote?

Collapse
spazmodius profile image
rajiv • Edited

That is, of course, the right question.

In Node 12, it seems to make no difference at all. Maybe they optimize to the same thing.

Results may vary in other runtimes.