DEV Community

Discussion on: Why do we write JavaScript like this?

anders profile image

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

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.