Sanjay H R’s Post

🚀 Day 12 of My JavaScript Learning Journey Today I learned about Arrays and Array Methods in JavaScript — one of the most essential concepts for handling data. 📌 What I learned: 🔹 What is an Array? • A collection of elements stored in a single variable • Zero-indexed (starts from 0) 🔹 Ways to Create an Array • Using array literal → [1, 2, 3] • Using constructor → new Array() 🔹 Adding & Removing Elements • push() / unshift() → Add elements • pop() / shift() → Remove elements 🔹 Important Array Methods • map() → Transform elements • filter() → Select specific elements • reduce() → Convert array into a single value 🔹 Searching & Utility Methods • find() / includes() • forEach() → Iterate elements • slice() / splice() → Extract or modify array 💡 Arrays are powerful because they allow us to store, manipulate, and process data efficiently. ⚙️ I also practiced real examples like transforming arrays using map() to create new values. Step by step, I’m improving my problem-solving skills and JavaScript fundamentals. 💻✨ #JavaScript #WebDevelopment #FrontendDevelopment #CodingJourney #LearningInPublic #100DaysOfCode #DeveloperJourney #ProgrammingBasics

  • diagram

To view or add a comment, sign in

Explore content categories