Course Content
Module 1: Introduction to JavaScript
0/1
Lesson 2 Variables, Data Types & Operators
0/1
Lesson 3 Conditional Statements
0/1
Lesson 4 Loops
0/1
Lesson 5 Functions
0/1
Lesson 6 Arrays & Objects
0/1
Lesson 7 DOM Introduction
0/1
Lesson 8 Event Handling
0/1
Lesson 9 ES6 Basics
0/1
JavaScript for Beginners: From Zero to Building Interactive Web Apps

Arrays & Objects

Creating and accessing arrays

Creating and using objects

🧪 Practice:

Create an array of fruits and print each fruit

✅ Example:

 
let fruits = ["Apple", "Banana", "Mango"];
for (let i = 0; i < fruits.length; i++) {
console.log(fruits[i]);
}
  • Create an object for a student with name and age

 
let student = {
name: "Amina",
age: 20
};
console.log(student.name); // Amina