Most Important JavaScript Lessons From the Last Two Weeks
Over the last two weeks, I have been practicing JavaScript by solving challenges on Codewars. Many of my solutions worked, but I often solved problems using longer loops and multiple conditions before realizing that JavaScript already had methods that could express the same logic more clearly.
Two methods that stood out to me were:
.some().sort()
Learning these methods showed me that improving as a programmer is not only about getting the correct answer. It is also about learning how to make code shorter, clearer, and easier to understand.