Today, I dove into the wonderful world of JavaScript arrays, learning how they work, how to manipulate them, and why they’re such a powerful tool for managing data. Arrays are like magic toolboxes that can store multiple values in a single variable—seriously cool, right?
What I Learned About Arrays:
- Basics: Arrays are a way to store collections of data. They can hold numbers, strings, objects, or even other arrays!
- Useful Methods:
.push()
to add an item to the end of an array..pop()
to remove the last item..forEach()
to loop through each element..map()
to create a new array by transforming each element.
Today’s Practice Project
Continuing from yesterday’s work, I focused on building a portfolio index website to showcase my learning projects. Each project (like a loading screen, hamburger menu, or flag design) is now linked in the portfolio.
Feeling Excited for What’s Next
Every small step feels like progress. JavaScript keeps surprising me with how flexible and powerful it is. I can’t wait to enhance this portfolio project further—maybe adding some animations or a search bar for projects.