Javascript topic
Javascript topic
JavaScript Topics
1. JavaScript Basics
- Variables and Constants (`var`, `let`, `const`)
- Data Types(string, number, boolean, null, undefined, symbol,
bigint)
- Type Coercion (implicit and explicit conversions)
- Operators
- Arithmetic operators (`+`, `-`, `*`, `/`, `%`)
- Comparison operators (`==`, `===`, `!=`, `!==`, `<`, `>`)
- Logical operators (`&&`, `||`, `!`)
- Assignment operators (`=`, `+=`, `-=`, etc.)
- Bitwise operators (`&`, `|`, `^`, `~`)
- Ternary operator (`condition ? value1 : value2`)
- Truthy and Falsy Values
- Control Flow
- Conditional statements (`if`, `else`, `else if`, `switch`)
- Loops (`for`, `while`, `do-while`, `for...in`, `for...of`)
- Break and continue statements
2. Functions
- Function Declaration
- Function Expression
- Arrow Functions
- Higher-Order Functions (functions that accept or return other
functions)
- Anonymous Functions
- IIFE (Immediately Invoked Function Expression)
- Parameters vs Arguments
- Default Parameters
- Rest Parameters
- Spread Operator in Function Calls
- Closures
- Function Hoisting
- Call, Apply, and Bind Methods
Mastering the Art of JavaScript with Krishna Bokefod
- Callback Functions
- Pure Functions
5. Arrays
- *Creating Arrays (`[]`, `new Array()`)
- *Array Methods
- Mutating: `push()`, `pop()`, `shift()`, `unshift()`, `splice()`
- Non-mutating: `map()`, `filter()`, `reduce()`, `forEach()`,
`concat()`, `slice()`, `join()`
- Searching: `find()`, `findIndex()`, `indexOf()`, `includes()`
- Destructuring Arrays
- Spread Operator with Arrays
- Array-Like Objects (`arguments` object, NodeList)
Mastering the Art of JavaScript with Krishna Bokefod
7. Event Handling
- Event Listeners (`addEventListener`)
- Event Object (`event.target`, `event.currentTarget`)
- Event Propagation
- Event Bubbling
- Event Capturing
- *Preventing Default Behavior (`event.preventDefault()`)
- *Event Delegation
- *Stopping Propagation (`event.stopPropagation()`)
8. ES6+ Concepts
- Arrow Functions
- Destructuring (Arrays, Objects)
- Rest and Spread Operators
- Default Parameters
- Modules (`import`, `export`)
- `let` and `const` vs `var`
- Iterators and Generators
- Symbols
- WeakMap and WeakSet
- Chaining Promises
- `async` and `await`
- Error Handling in Async Functions
- Promise.all() and Promise.race()
- Prototype Pattern