this post was submitted on 04 Jan 2025
588 points (97.9% liked)
Greentext
6738 readers
1362 users here now
This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.
Be warned:
- Anon is often crazy.
- Anon is often depressed.
- Anon frequently shares thoughts that are immature, offensive, or incomprehensible.
If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Modern JavaScript style recommends using arrow functions for anything that doesn't need a context. Consider adjusting your code to the arrow function syntax:
Not only is this syntax shorter, it also gives you the benefits of a constant function. You can use it the same way you did in your existing code:
For more JavaScript style suggestions, reply with more code.
Good bot