Knowledge baseExam Center
ENEnglish
Choose language13

Learn JavaScript — Basic

Learn JavaScript in the browser: language fundamentals, data operations, the DOM, events and forms. Practice with local files and course resources.

COURSE OVERVIEWREADY
Lessons: 39
Quizzes: 7
All steps: 46
$Ready to start
Knowledge base for this technology

What you will learn

  • Use variables, conditional statements, loops, functions and basic data structures.
  • Read and update the DOM, respond to events and validate form data.
  • Handle local resources, interface state, asynchronous operations and errors.
  • Create accessible keyboard interactions, control focus and account for reduced motion.

Course curriculum

Work through the curriculum step by step. Completed stages are marked, and you can open the next available stage.

39 lessons7 quizzes46 steps total
  1. 01LESSON
    LESSON 1: Getting started with JS: <script defer>, the console, project structureAvailable now
  2. 02LESSON
    LESSON 2: Variables and constants: let, const, naming rulesLocked
  3. 03LESSON
    LESSON 3: Primitive types and typeof, special valuesLocked
  4. 04LESSON
    LESSON 4: Operators and conversions: arithmetic, comparisons, truthy/falsyLocked
  5. 05LESSON
    LESSON 5: Conditional statements: if/else, switch (patterns)Locked
  6. 06LESSON
    LESSON 6: Loops: for, while, iterating over arrays and collectionsLocked
  7. 01QUIZ
    Quiz 1: lessons 1–6Locked
  8. 07LESSON
    LESSON 7: Functions: declarations vs. expressions, parametersLocked
  9. 08LESSON
    LESSON 8: Arrow functions and semantic differencesLocked
  10. 09LESSON
    LESSON 9: Scopes, hoisting, and “use strict”Locked
  11. 10LESSON
    LESSON 10: Objects: literals, modifications, referencesLocked
  12. 11LESSON
    LESSON 11: Arrays: basics, mutations, iterationLocked
  13. 12LESSON
    LESSON 12: Array methods part 1: map, filter, reduce (intro)Locked
  14. 02QUIZ
    Quiz 2: lessons 7–12Locked
  15. 13LESSON
    LESSON 13: Strings: methods, template literalsLocked
  16. 14LESSON
    LESSON 14: Numbers and Math: rounding and randomness (without Crypto)Locked
  17. 15LESSON
    LESSON 15: Dates: Date + basics of Intl.DateTimeFormatLocked
  18. 16LESSON
    LESSON 16: DOM selectors: querySelector, querySelectorAllLocked
  19. 17LESSON
    LESSON 17: DOM modification: creating, inserting, removing, textContentLocked
  20. 18LESSON
    LESSON 18: Attributes and classes: dataset, classListLocked
  21. 03QUIZ
    Quiz 3: lessons 13–18Locked
  22. 19LESSON
    LESSON 19: Events: addEventListener, propagation, preventDefaultLocked
  23. 20LESSON
    LESSON 20: Forms #1: getting values, submit, HTML5 validation (without sending)Locked
  24. 21LESSON
    LESSON 21: Timers: setTimeout, setInterval + debounce/throttle (intro)Locked
  25. 22LESSON
    LESSON 22: ES Modules: type="module", import/export (local files)Locked
  26. 23LESSON
    LESSON 23: Event loop (intro): microtask vs. macrotask, queueMicrotaskLocked
  27. 24LESSON
    LESSON 24: LocalStorage and SessionStorage: state persistenceLocked
  28. 04QUIZ
    Quiz 4: lessons 19–24Locked
  29. 25LESSON
    LESSON 25: JSON: serialization/parsing, data versioningLocked
  30. 26LESSON
    LESSON 26: URL and URLSearchParams: working with parametersLocked
  31. 27LESSON
    LESSON 27: Navigation by URL fragment without reloading the pageLocked
  32. 28LESSON
    LESSON 28: Accessibility #1: focus, aria-expanded, keyboard controlLocked
  33. 29LESSON
    LESSON 29: Keyboard and pointer handling: accessible patternsLocked
  34. 05QUIZ
    Quiz 5: lessons 25–29Locked
  35. 30LESSON
    LESSON 30: Fetch (local): loading assets/media/data.json and error handlingLocked
  36. 31LESSON
    LESSON 31: Images: preloading local files, handling onloadLocked
  37. 32LESSON
    LESSON 32: Animations: toggling classes + requestAnimationFrame (intro)Locked
  38. 33LESSON
    LESSON 33: Drag & Drop (HTML5): sorting elements (without files)Locked
  39. 34LESSON
    LESSON 34: Clipboard APILocked
  40. 06QUIZ
    Quiz 6: lessons 30–34Locked
  41. 35LESSON
    LESSON 35: Project module structure: hooks-1.js, hooks-2.js, conventionLocked
  42. 36LESSON
    LESSON 36: Components without a framework #1: Tabs (a11y)Locked
  43. 37LESSON
    LESSON 37: Components without a framework #2: Accordion (a11y)Locked
  44. 38LESSON
    LESSON 38: Custom events: new CustomEvent, dispatchEventLocked
  45. 39LESSON
    LESSON 39: Debugging: console API, breakpoints, quick inspectionsLocked
  46. 07QUIZ
    Quiz 7: lessons 35–39Locked
  47. +EXAM
    Confirm your skills with an examPreparing with this course is optional. You can choose a certification exam for this language and level without completing the course or quizzes. Check your account access and confirm exam authorization.Other status