I feel like this is something that's been shared before, and heck, I've talked about this myself many times as well, but it's a useful reminder that many things we've used JavaScript for in the past are not actually necessary and can be done by simpler, less complex means. Check out "You no longer need JavaScript", a great post focused on CSS improvements primarily but also some relevant HTML features you may not be aware of.
Meta is transferring React, React Native, and JSX to a new organization: the React Foundation. This foundation will become part of the Linux Foundation. The organization's purpose is to ensure that the development of the popular JavaScript framework is no longer under the direct influence of a single company. React was developed by Facebook in 2013. It has grown to become the most widely used front-end framework for web development.
JavaScript now has native support for grouping data with Object.groupBy() and Map.groupBy(). These static methods make grouping expressive, concise, and far more readable, without the need for external libraries or complex reduce() patterns. What are Object.groupBy() and Map.groupBy()? Both of these methods were introduced in ES2024 and allow you to group elements of an array by a key generated from a callback function.
I'm new here and fairly new to JavaScript, so please bear with me. I've been converting a working python program to JavaScript with varying degrees of success. It's a fairly simple 8x8 button panel that modifies the button text when toggled. So far that works. However, some of the buttons are in "groups" that work like a mechanical switch that clears the other buttons in the group when a new one is selected.
There's a good reason that many developers pause before using .sort(), .reverse(), or .splice() in JavaScript: those methods mutate the original array. That single side effect can lead to subtle, hard-to-trace bugs, especially in apps with shared or reactive state. The good news is that in the last couple of years we've gotten new array methods that make working with arrays safer and cleaner by avoiding mutation altogether: These return copies instead of changing the original array.