I started this project to improve my JavaScript skills by solving coding problems.
At first, I was practicing the basics like functions, arrays, objects, loops, and conditions. As I worked through different problems, I started discovering new ways to solve them.
While removing duplicate values, I learned about indexOf().
When I needed to calculate a total from an array, I learned how reduce() works.
While finding the second-largest number, I came across -Infinity and understood why it can be useful as an initial value.
I also learned includes() while checking whether a value already existed in an array.
When working with student names, I learned toUpperCase() to convert names into uppercase.
These may look like small concepts, but each one helped me understand JavaScript a little better.
Through these problems, I practiced:
- Functions
- Arrays
- Objects
- Loops
- Conditions
map()filter()reduce()indexOf()includes()toUpperCase()
The biggest lesson from this practice was that I don't need to know everything before starting to solve problems.
I can start with what I know, face a problem, discover something new, and then use that knowledge in the next problem.
This project is a small step in my JavaScript learning journey, and I will continue practicing and adding new problems as I learn.