News for hackers. Stuff that matters.
Re:How to manage HTML DOM with vanilla JavaScript only? by ratww on Friday April 03, 2020 @08:53AM (#22768686)
First of all, are you aware of shorthand methods? Are you aware that you can have non-arrow functions without the "function" keyword :) ES6 has grown :)

And there was no goal intended with the grep. This is what you wrote:

> And I'd love to see the codebase of a JS app that completely bans the "function" keyword

I just grepped "function" to give you a personal anecdote of an app that doesn't need to use the "function" keyword much.

That was the first time I interacted with you, I was trying to be nice then, and you were completely hostile. Some of the replies were completely uncalled for.

---

EDIT: You just edited your message to add the part about shorthand methods. My point still stands. I never claimed to be only using arrow functions (in fact, you're the one who DID claim I was only using arrow functions!). I only claimed we rarely use the "function" keyword.

There are no comments on this comment yet.