JavaScript Basics
The basics of JavaScript, everything you need to start on a solid foundation!
Chapter Lessons
Setting Up a JavaScript Project
Discover the easiest way to create and run your very first JavaScript file with Node.js. This is the first step to start coding!
JavaScript Variables (let, const, var)
Learn how to declare and use variables in JavaScript. We'll explore the fundamental differences between `let`, `const`, and the older `var` to write modern, clean code.
JavaScript Data Types
Discover the fundamental data types in JavaScript: Number, String, Boolean, and understand the essential difference between `null` and `undefined` to master dynamic typing.
Scopes in JavaScript: var vs let vs const
Dive into the heart of JavaScript with the concept of scope. Finally understand the crucial difference between `var`, `let`, and `const` and key concepts like hoisting to avoid common bugs.
JavaScript Objects
Learn how to create and manipulate objects, the most fundamental data structure in JavaScript. We'll cover accessing, modifying, and deleting properties.
Prototyping in JavaScript
Demystify prototyping in JavaScript! Understand how objects inherit properties and methods via the prototype chain, a key concept in object-oriented programming.
JavaScript Classes (ES6)
Discover the ES6 class syntax. A cleaner and more readable way to work with prototyping, inheritance, and constructors in JavaScript.
JavaScript Operators
A comprehensive overview of operators in JavaScript: arithmetic, logical, comparison, assignment, and more modern ones like optional chaining or destructuring.
JavaScript Loops
Learn how to repeat actions and iterate through data with JavaScript loops. We explore `for`, `while`, `do...while` in detail, as well as the modern `for...in` and `for...of` loops.
JavaScript Conditions
Master conditional logic in JavaScript with `if`/`else`, `switch`/`case`, and the ternary operator. Understand logical operators and truthy/falsy values to control the flow of your code.
Error Handling in JavaScript
Learn how to handle errors with `try...catch...finally` to prevent your application from crashing. We explore common error types and how to create and throw your own exceptions.
Advanced Array Methods
Take it to the next level with JavaScript array methods: `map`, `filter`, `reduce`, `find`, and many more to manipulate your data like a pro.
Asynchronous Programming in JavaScript
Master asynchronous programming in JavaScript. We explore the evolution from callbacks to Promises, up to the modern and readable `async/await` syntax for handling long operations.
Fetch API and HTTP Requests
Learn how to perform HTTP requests in JavaScript with the Fetch API. We cover GET, POST, PUT, DELETE methods, header management, and request cancellation.
Imperative vs. Declarative: Writing better JavaScript code
Dive into the two main approaches to programming in JavaScript. Discover why methods like .map() and .filter() can make your code more readable and maintainable than traditional for loops.
Appendices
- <https://roadmap.sh/javascript>