🧩 Week 5: JavaScript Basics (ES6 Foundation)

Goal: Learn the fundamentals of JavaScript syntax, logic, data types, functions, arrays, and objects.


✅ Week 5 – Day-by-Day Breakdown:

📆 Day 1: Introduction to JavaScript + Variables & Data Types

TimeTopicType
00:00–00:15What is JavaScript? Use in BrowserTheory
00:15–00:30How to add JS to HTML (inline, internal, external)Theory
00:30–00:50Variables: var, let, constTheory
00:50–01:20Data Types: string, number, boolean, null, undefined, objectPractical
01:20–02:00Task: Create a simple page with console logs of variablesPractice

📆 Day 2: Operators & Conditionals

TimeTopicType
00:00–00:15Arithmetic & Assignment OperatorsTheory
00:15–00:30Comparison Operators (==, ===, !=, !==, >, <, etc.)Theory
00:30–01:00Logical Operators (&&,, !)Theory
01:00–01:30Conditional Statements: if, else if, else, switchPractical
01:30–02:00Practice: Build a simple grade calculatorProject

📆 Day 3: Loops (for, while, do-while)

TimeTopicType
00:00–00:15Why loops?Theory
00:15–00:40for loop syntax & examplesPractical
00:40–01:00while loop, do-while loopTheory + Practice
01:00–01:30Nested loops & break/continuePractice
01:30–02:00Challenge: Print multiplication table + reverse countExercise

__

📆 Day 4: Functions (Declaration, Expression, Arrow)

TimeTopicType
00:00–00:20Function declaration & callingTheory
00:20–00:40Parameters, arguments, return valuesPractical
00:40–01:10Function expressions & arrow functionsTheory + Examples
01:10–01:40Task: Create a tip calculator functionPractice
01:40–02:00Compare all three types (declared, expression, arrow)Summary

📆 Day 5: Arrays & Array Methods

TimeTopicType
00:00–00:20Create arrays, index, lengthTheory
00:20–00:40Push, pop, shift, unshiftPractical
00:40–01:00forEach(), map(), filter(), find()Modern methods
01:00–01:30Mini Task: Store student marks & calculate averageExercise
01:30–02:00Build: "Fruit Inventory" system with arraysPractice

📆 Day 6: Objects, Properties & Methods

TimeTopicType
00:00–00:20What is an object?Theory
00:20–00:40Object properties, dot & bracket notationPractical
00:40–01:10Adding methods to objectsPractice
01:10–01:40Nested objects & array of objectsProject
01:40–02:00Task: Create a student record objectPractice

📆 Day 7: Quiz + Exercises + Code Review

TimeTopicType
00:00–00:20Recap of all conceptsReview
00:20–00:50Quiz: 15 MCQs (Variables, Loops, Arrays, Functions)Assessment
00:50–01:30Challenge: Build a "Simple Marksheet App" in JSFinal Exercise
01:30–02:00Review submissions, give feedbackQ\&A