This repository documents my daily JavaScript learning progress using
GitHub Codespaces + VS Code.
I am learning step-by-step with hands-on practice and daily commits.
- Variables (
let,const) - Data Types
- Number
- String
- Boolean
- Null
- Undefined
- Updating variable values
console.log()usage- Running JavaScript using Node.js
- Store and print values
- Check data types using
typeof - Update variable values
- Display multiple values together
- Redeclaration vs reassignment
Variables can be declared once and updated many times using
let.
if,else,else if- Comparison operators (
>,<,>=,<=,===) - Logical operators (
&&) - Decision making
- Positive / Negative number
- Even / Odd number
- Voting eligibility
- Largest of two numbers
- Pass / Fail
- Grade system
- Login validation
- Temperature check
- Number range check
JavaScript executes only the block whose condition is true.
forloopwhileloop- Loop conditions and increments
- Accumulation using loops
breakstatement- Printing output line by line vs side by side
- Print numbers (1–10)
- Even and odd numbers
- Sum of numbers
- Multiplication table
- Countdown using
while - Stop loop using
break
- Loops reduce repetition
foris used when iterations are knownwhileis used when condition controls the loop
- What is a function
- Creating and calling functions
- Parameters and arguments
returnstatement- Functions with conditions and loops
- Default parameters
- Arrow functions (intro)
- Simple function
- Function with parameters
- Add two numbers
- Square of a number
- Even / Odd function
- Age eligibility checker
- Sum from 1 to N
- Arrow function
- Calculator function
- Functions avoid repeating code
returnsends data back from a functionconsole.log()only displays output
- What an array is
- Creating arrays
- Accessing array elements using index
- Array length
- Updating array values
- Looping through arrays
- Common array methods:
push()pop()shift()unshift()
- Create and print an array
- Access elements using index
- Find array length
- Update array values
- Loop through array using
for - Add elements using
push() - Remove last element using
pop() - Add element at start using
unshift() - Remove element from start using
shift() - Find sum of numbers in an array
- Arrays store multiple values in one variable
- Array index starts from 0
.lengthhelps control loopspush()adds an element at the endpop()removes the last elementunshift()adds an element at the beginningshift()removes the first element- Loops are commonly used to work with arrays
- JavaScript (Node.js)
- Visual Studio Code
- Git & GitHub
- GitHub Codespaces
- Learn concepts
- Write programs
- Run code using Node
- Fix errors
- Commit & push to GitHub
graph TD
D1["Day 1<br/>Variables & Data Types ✅"]
D2["Day 2<br/>Conditions if/else ✅"]
D3["Day 3<br/>Loops ✅"]
D4["Day 4<br/>Functions ✅"]
D5["Day 5<br/>Arrays ✅"]
D6["Day 6<br/>Objects ✅"]
D7["Day 7<br/>Arrays of objrct + real practice ⏳"]
D1 --> D2
D2 --> D3
D3 --> D4
D4 --> D5
D5 --> D6
D6 --> D7
Consistency over speed. Learning by doing.