This repository documents my 7-day journey to master JavaScript fundamentals for React development.
- Variables (
letvsconst) - Template Literals (Backticks)
- If/Else Logic
- Ternary Operators (
condition ? true : false) - Switch Statements
I learned how to replace complex if/else chains with clean Ternary operators:
// Old Way
if (age >= 18) {
status = "Eligible";
} else {
status = "Not Eligible";
}
// Pro Way (Ternary)
const status = age >= 18 ? "Eligible" : "Not Eligible";
### Day 2: Arrays & Loops
- [x] Arrays (`push`, `pop`, `splice`)
- [x] For Loops (Iterating lists)
- [x] While Loops (Conditional looping)
- [x] Nested Loops (Clock simulation)
- [x] The Accumulator Pattern (Summing totals)