💛 JavaScript
Learn JavaScript from the Basics
The language of the web, taught from the ground up — no setup required. Write and run real JavaScript directly in your browser, exactly as your code will run for real users.
What is JavaScript used for?
JavaScript is the only language that runs natively in every web browser, making it the backbone of interactive websites and web apps. Combined with Node.js, it's also widely used on the server side, making it one of the most in-demand, versatile languages for web developers of every kind.
Common uses & related roles:
- Front-end web development
- Back-end development (Node.js)
- Web application development
- Mobile app development (React Native)
- Full-stack development
💛JavaScript Lessons
- 01Creating Variables
- 02Conditionals (if Statements)
- 03Loops (for Statements)
- 04Creating Functions
- 05Working with Arrays
- 06Working with Objects
- 07Loops (while Statements)
- 08Working with Strings
- 09Using Classes (Object-Oriented Programming)
- 10Error Handling (try...catch)
- 11Destructuring and the Spread Syntax
- 12Async Code (Promise / async & await)
- 13Advanced Array Methods (filter and reduce)
- 14The switch Statement
- 15The Ternary Operator
- 16Inheritance (Extending Classes)
- 17How to Write Comments
- 18Logical Operators (AND, OR, NOT)
- 19Constants (Making Read-Only Values with const)
- 20Splitting and Joining Strings (split and join)
- 21Null-Safe Syntax (?? and ?.)
- 22Searching Arrays and Collections (includes and find)
- 23Transforming Arrays with map
- 24Two-Dimensional Arrays (Table-Shaped Data)
- 25Building a Custom Error Class
- 26Default Arguments (Setting Initial Values for Parameters)
- 27Using Set (Collections)
- 28Verifying Correctness with assert (Your First Step Into Testing)
- 29Higher-Order Functions (Passing a Function as an Argument)
- 30Stacks and Queues (Basic Data Structures)
- 31The Basics of Type Conversion (Casting)
- 32Introduction to Regular Expressions (Pattern Matching)
- 33The Binary Search Algorithm
- 34Building a Caesar Cipher (a Letter-Shifting Cipher)
- 35Understanding How Bubble Sort Works
- 36Building and Displaying Dates (Basic Year/Month/Day Operations)
- 37Writing Several Unit Tests Together (Multiple Test Cases)
- 38Speeding Up Calculations with Memoization (Caching)
- 39Normalizing Strings (trim and Case Unification)
- 40The Difference Between Shallow Copy and Deep Copy
- 41The Basics of Enums (Enumerated Types)
- 42Flattening Arrays (flatten)
- 43Reversing a String and Checking for a Palindrome
- 44Pairing Up Two Arrays (a zip Operation)
- 45Rounding Numbers (floor, ceil, and round)
- 46Multi-Line Strings (Template Literals)
- 47Returning Multiple Values from a Function (Array Destructuring)
- 48Finding the GCD and LCM (the Euclidean Algorithm)
- 49Formatting Numbers (Digit Alignment and Decimal Precision)
- 50Cleanup Processing with try/catch/finally
- 51Writing Type-Agnostic, General-Purpose Functions
- 52The Basics of Map (an Object for Key-Value Pairs)
- 53Generating Random Numbers
- 54Bitwise Operations (AND, OR, XOR, and Shift Operations)
- 55Using static (Static Class Properties and Methods)
- 56Waiting a Fixed Amount of Time (setTimeout and await)
- 57Watch Out for Floating-Point Rounding Error
- 58Transforming and Flattening at Once with flatMap()
- 59FizzBuzz (the Classic Practice Problem)
- 60Checking Whether a Number Is Prime
- 61Set Operations with Set (Union, Intersection, and Difference)
- 62Converting Number Bases (Binary and Hexadecimal)
- 63Checking That Brackets Match (an Application of Stacks)
- 64Checking for an Anagram
- 65Checking Whether a Year Is a Leap Year
- 66Converting Temperature (Celsius ⇄ Fahrenheit)
- 67Finding the Prime Factorization
- 68[Applied] Build a Simple To-Do List Tool
Ad space (in-article)
