Programming Languages
Learn JavaScript
109 short lessons with interactive exercises. You start from zero and move from beginner to advanced.
- 109 lessons
- 3 levels
- Arabic & English
- Start free
What you will learn
- Write JavaScript using types, control flow, functions, arrays and objects
- Work with the DOM and events to build interaction into web pages
- Organize your code with modern concepts and sound object-oriented programming
- Manage asynchronous operations and promises, and work with external data
About this course
A complete JavaScript course, from zero to pro: the basics, types and functions, then arrays, objects and modern functions, all the way to the DOM, events, asynchronous programming, object-oriented programming and advanced features. The number one language of the web.
Skills
- JavaScript
- Web Development
- Front-End
- Node.js
Lessons
Every lesson is short, and the exercises after it lock in what you learned.
Beginner level
30 lessons
- Introduction to JavaScript and how it works
- Your first program: printing with console.log
- Comments in Code
- Variables and Constants
- Variable Naming Rules
- Data Types
- Numbers
- Strings
- Putting values inside text with template literals
- Boolean values
- null and undefined
- Finding a value's type with typeof
- Type Conversion
- Arithmetic Operations
- Operator Precedence
- Assignment Operators
- Increment ++ and Decrement --
- Comparison Operators
- == vs ===: Loose vs Strict Equality
- Logical Operators && || !
- Truthy & Falsy Values
- Short-circuit Evaluation with && and ||
- if / else statements
- Nested conditionals and else if
- Choosing with switch
- Ternary Operator
- The for Loop
- The while and do...while Loops
- Controlling loops: break and continue
- Functions: defining them, passing values and returning results
Intermediate level
35 lessons
- Variable scope
- Function expressions
- Arrow functions
- Default parameters
- Rest Parameters
- Passing Functions as Arguments (Callbacks)
- Creating Arrays and Working with Their Elements
- Adding and Removing Array Elements
- Using slice and splice
- Looping with for...of
- Looping with forEach
- Creating an array with map
- Filtering elements with filter
- Searching with find and includes
- Checking with some and every
- Combining values with reduce
- Sorting Array Elements with sort
- Creating objects and reading their properties
- Adding, Changing and Deleting Object Properties
- Object Methods
- Looping over an object's properties with for...in
- Reading an object's data with Object.keys, Object.values and Object.entries
- Safe property access with ?.
- Setting default values with ??
- Destructuring arrays and objects
- Copying values with the spread operator
- Rest Operator
- Maps and Sets with Map and Set
- String Methods
- Numbers and Math Functions with Math
- Date and time with Date
- Working with JSON
- Regular Expressions
- Handling and throwing errors
- Modules: import and export
Advanced level
44 lessons
- Introduction to the Document Object Model (DOM)
- DOM selection
- Reading and changing content
- Reading and Changing DOM Attributes and Properties
- Changing styles and classes
- Creating, Adding and Removing Page Elements
- Events & the Event Object
- Event propagation: bubbling and capturing
- Preventing default behavior and stopping event propagation (preventDefault & stopPropagation)
- Event delegation
- Working with forms and their data
- Form validation
- Local storage and session storage (Web Storage)
- Timers with setTimeout and setInterval
- The Event Loop, Microtasks and Macrotasks
- Promises and How to Create Them
- Handling Promises (then, catch and finally)
- Running several promises with Promise.all and Promise.allSettled
- Using Promise.race and Promise.any
- Asynchronous Programming with async and await
- Async error handling
- Fetching data and reading the response with the Fetch API
- Sending Data and Headers with the Fetch API
- Handling request errors and canceling requests
- Hoisting in JavaScript
- Lexical Scope
- Closures
- Using the this Keyword
- Controlling this with call, apply, and bind
- Introduction to object-oriented programming
- Constructor functions and creating objects with new
- Prototypes and the prototype chain
- Classes
- The constructor and class fields
- Private fields inside a class
- Properties with get and set
- Using static Inside Classes
- Inheritance, super and Method Overriding
- Iterators
- Generators
- Async Iteration
- Unique Values with Symbol
- Weak references with WeakMap and WeakSet
- Controlling object operations with Proxy and Reflect
Start your first lesson today
Get the Lammah app and pick “Learn JavaScript” from the courses. Each lesson takes a few minutes, and you can start free.






