Webdev Log : Learning Array

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!
    javascript
    let fruits = ["apple", "banana", "cherry"];
    console.log(fruits[1]); // Outputs: banana
  • 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.


Side Note : Promote & earn with Letterhanna’s affiliate program.


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.


Here Are Some Fonts You Might Love! 👀