DEV Community

Cover image for 30 Days Of Code- Day 2
Akshita
Akshita

Posted on

30 Days Of Code- Day 2

Today wasn't the most productive coding-wise. I went out with my friend during the day, and by the time I got home, I was so tired that I ended up sleeping.

But I still didn't want to break the streak completely and ig consistency isn't about being perfect- it's about showing up, even if it's just a tiny step.
So, I quickly revised some JavaScript high-order array loop- ForEach, filter, map, and reduce.

💡 What I Learned Today:
Went over the syntax and use cases of:

forEach - iterates over each element of an array

map() - For transforming arrays

filter() - For selecting specific elements

reduce() - For reducing arrays to a single value (like sums, products, etc.)

Tomorrow, I'm planning to get back into solving DSA problems and practicing some coding questions again. Day 3, here we come! 🚀

Top comments (0)