- 1 JavaScript Environment Setup and Hello World The "Why" Before the "How": Why JavaScript?Setting Up Your Environment: Browsers, DevTools, and IDEsLinking JavaScript to HTML: Inline vs. External ScriptsYour First Program: console.log() and Saying Hello
- 2 JavaScript Fundamentals: Building Blocks Variables: Storing Data with let and constPrimitive Data Types: Strings, Numbers, and BooleansBasic Operators: Math, Assignment, and String ConcatenationTemplate Literals: Dynamic and Readable Strings
- 3 Control Flow: Making Decisions and Repeating Actions Conditional Logic: If, Else, and Else If StatementsComparison and Logical Operators: &&, ||, and Strict Equality (===)The Switch Statement: Handling Multiple Distinct ConditionsLoops: Automating Repetition with For and While Loops
- 4 Functions: Reusable Logic Containers Function Declarations: Defining and Calling FunctionsParameters and Arguments: Passing Data into FunctionsReturn Values: Getting Data Back OutArrow Functions: Modern, Concise Function Syntax +1
- 5 Essential Data Structures: Arrays and Objects Arrays: Managing Ordered Lists of DataBasic Array Methods: push, pop, shift, and unshiftObjects: Structuring Data with Key-Value PairsAccessing and Modifying Object Properties
- 6 Advanced Data Handling: Modern Array Iteration Looping through Data: forEach vs. Traditional LoopsTransforming Data: The map() MethodFinding and Filtering: The filter() and find() MethodsAccumulating Data: Using the reduce() Method
- 7 Modern JavaScript Syntax: ES6+ Features Destructuring Assignment: Extracting Values ElegantlyThe Spread Operator: Expanding Arrays and ObjectsRest Parameters: Handling Infinite Arguments safelyOptional Chaining and Nullish Coalescing
- 8 The Document Object Model (DOM): Bringing Pages to Life What is the DOM? Connecting HTML and JavaScriptSelecting Elements: querySelector and getElementByIdManipulating Content: textContent and innerHTMLStyling via JavaScript: Modifying Classes and Inline Styles +1
- 9 Events: Responding to User Interactions Event Listeners: Catching Clicks, Hovers, and KeystrokesThe Event Object: Understanding What Just HappenedForm Submission and Preventing Default BehaviorsEvent Delegation: Efficiently Handling Multiple Elements
- 10 Asynchronous JavaScript: Handling Time and Background Tasks Understanding Asynchrony: The Call Stack and Event LoopCallbacks and setTimeout: The Basics of DelayPromises: A Modern Solution for Future ValuesAsync/Await: Writing Synchronous-Looking Async Code
- 11 Network Requests: Communicating with the World Introduction to APIs and JSON Data FormatFetching Data: Using the Fetch API for GET RequestsSending Data: Configuring Fetch for POST RequestsHandling Loading States and Network Errors Gracefully
- 12 Browser Storage: Remembering Data Across Sessions LocalStorage: Persistent Client-Side DataSessionStorage: Temporary Data for the Current TabJSON.stringify and JSON.parse: Storing Complex Objects
- 13 Object-Oriented JavaScript: Structuring Complex Logic The 'this' Keyword: Understanding Execution ContextES6 Classes: Blueprints for ObjectsConstructors and Class MethodsInheritance: Extending Classes to Share Behavior
- 14 Error Handling and Debugging: Keeping Your Code Reliable Try, Catch, and Finally: Handling Runtime ErrorsThrowing Custom Errors for Better ValidationMastering Browser DevTools: Breakpoints and SteppingAdvanced Console Methods: table, warn, and group
- 15 Modules and Modern Tooling: Preparing for Production ES Modules: Splitting Code with Import and ExportIntroduction to Node.js and the NPM EcosystemUsing package.json and Installing Third-Party LibrariesConceptual Overview of Bundlers (e.g., Vite/Webpack)