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
  1. Introduction to JavaScript and how it works
  2. Your first program: printing with console.log
  3. Comments in Code
  4. Variables and Constants
  5. Variable Naming Rules
  6. Data Types
  7. Numbers
  8. Strings
  9. Putting values inside text with template literals
  10. Boolean values
  11. null and undefined
  12. Finding a value's type with typeof
  13. Type Conversion
  14. Arithmetic Operations
  15. Operator Precedence
  16. Assignment Operators
  17. Increment ++ and Decrement --
  18. Comparison Operators
  19. == vs ===: Loose vs Strict Equality
  20. Logical Operators && || !
  21. Truthy & Falsy Values
  22. Short-circuit Evaluation with && and ||
  23. if / else statements
  24. Nested conditionals and else if
  25. Choosing with switch
  26. Ternary Operator
  27. The for Loop
  28. The while and do...while Loops
  29. Controlling loops: break and continue
  30. Functions: defining them, passing values and returning results

Intermediate level

35 lessons
  1. Variable scope
  2. Function expressions
  3. Arrow functions
  4. Default parameters
  5. Rest Parameters
  6. Passing Functions as Arguments (Callbacks)
  7. Creating Arrays and Working with Their Elements
  8. Adding and Removing Array Elements
  9. Using slice and splice
  10. Looping with for...of
  11. Looping with forEach
  12. Creating an array with map
  13. Filtering elements with filter
  14. Searching with find and includes
  15. Checking with some and every
  16. Combining values with reduce
  17. Sorting Array Elements with sort
  18. Creating objects and reading their properties
  19. Adding, Changing and Deleting Object Properties
  20. Object Methods
  21. Looping over an object's properties with for...in
  22. Reading an object's data with Object.keys, Object.values and Object.entries
  23. Safe property access with ?.
  24. Setting default values with ??
  25. Destructuring arrays and objects
  26. Copying values with the spread operator
  27. Rest Operator
  28. Maps and Sets with Map and Set
  29. String Methods
  30. Numbers and Math Functions with Math
  31. Date and time with Date
  32. Working with JSON
  33. Regular Expressions
  34. Handling and throwing errors
  35. Modules: import and export

Advanced level

44 lessons
  1. Introduction to the Document Object Model (DOM)
  2. DOM selection
  3. Reading and changing content
  4. Reading and Changing DOM Attributes and Properties
  5. Changing styles and classes
  6. Creating, Adding and Removing Page Elements
  7. Events & the Event Object
  8. Event propagation: bubbling and capturing
  9. Preventing default behavior and stopping event propagation (preventDefault & stopPropagation)
  10. Event delegation
  11. Working with forms and their data
  12. Form validation
  13. Local storage and session storage (Web Storage)
  14. Timers with setTimeout and setInterval
  15. The Event Loop, Microtasks and Macrotasks
  16. Promises and How to Create Them
  17. Handling Promises (then, catch and finally)
  18. Running several promises with Promise.all and Promise.allSettled
  19. Using Promise.race and Promise.any
  20. Asynchronous Programming with async and await
  21. Async error handling
  22. Fetching data and reading the response with the Fetch API
  23. Sending Data and Headers with the Fetch API
  24. Handling request errors and canceling requests
  25. Hoisting in JavaScript
  26. Lexical Scope
  27. Closures
  28. Using the this Keyword
  29. Controlling this with call, apply, and bind
  30. Introduction to object-oriented programming
  31. Constructor functions and creating objects with new
  32. Prototypes and the prototype chain
  33. Classes
  34. The constructor and class fields
  35. Private fields inside a class
  36. Properties with get and set
  37. Using static Inside Classes
  38. Inheritance, super and Method Overriding
  39. Iterators
  40. Generators
  41. Async Iteration
  42. Unique Values with Symbol
  43. Weak references with WeakMap and WeakSet
  44. 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.

Learn tech skills easily, for freeGet the app