JavaScript Basics

The basics of JavaScript, everything you need to start on a solid foundation!

lessons
16
Level
Beginner

Chapter Lessons

1

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!

2

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.

3

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.

4

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.

5

JavaScript Objects

Learn how to create and manipulate objects, the most fundamental data structure in JavaScript. We'll cover accessing, modifying, and deleting properties.

6

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.

7

JavaScript Classes (ES6)

Discover the ES6 class syntax. A cleaner and more readable way to work with prototyping, inheritance, and constructors in JavaScript.

8

JavaScript Operators

A comprehensive overview of operators in JavaScript: arithmetic, logical, comparison, assignment, and more modern ones like optional chaining or destructuring.

9

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.

10

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.

11

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.

12

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.

13

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.

14

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.

15

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.

16

Appendices

- <https://roadmap.sh/javascript>