📌 JavaScript Tip of the Day
Want a cleaner way to access the last item in an array or string?
✅ Why it works:
The .at() method allows negative indexing, making your code cleaner and easier to read.
🔹 -1 = last item
🔹 -2 = second last
🔹 Much better than array[array.length - 1]
Start using .at() for cleaner, more readable JavaScript, which is beneficial for history states, stacks, and recent item tracking.