</> Code Corner

JavaScript Tutorial

The programming language of the web. Learn it step by step with 57 short lessons, live code examples and 285 quiz questions.

57

lessons

285

quiz questions

5

sections

What you'll learn in this JavaScript tutorial

Every topic ends with a short quiz — score 70% to unlock the next one.

JS Tutorial · 39 lessons

  1. 1. JS Introduction What JavaScript can do.
  2. 2. JS Where To The <script> tag, internal and external scripts.
  3. 3. JS Output innerHTML, document.write, alert and console.log.
  4. 4. JS Statements Instructions, semicolons and code blocks.
  5. 5. JS Syntax Values, literals, identifiers and case sensitivity.
  6. 6. JS Comments Single-line and multi-line comments.
  7. 7. JS Variables var, let and const containers for data.
  8. 8. JS Let & Const Block scope, redeclaring and reassigning.
  9. 9. JS Operators Arithmetic, assignment, comparison and logical operators.
  10. 10. JS Data Types String, Number, BigInt, Boolean, undefined, null, Symbol and Object.
  11. 11. JS Functions Reusable blocks of code with parameters and return values.
  12. 12. JS Objects Properties, methods and the this keyword.
  13. 13. JS Events React to clicks, changes, keys and page loads.
  14. 14. JS Strings Text in quotes, length and escape characters.
  15. 15. JS String Methods slice, replace, toUpperCase, trim, split and more.
  16. 16. JS String Templates Template literals with ${ } interpolation.
  17. 17. JS Numbers One number type, NaN, Infinity and precision.
  18. 18. JS Number Methods toFixed, toString, Number(), parseInt and parseFloat.
  19. 19. JS Arrays Store multiple values in one variable.
  20. 20. JS Array Methods pop, shift, splice, slice, concat, join and includes.
  21. 21. JS Array Sort sort, reverse and compare functions.
  22. 22. JS Array Iteration forEach, map, filter, reduce, find, every and some.
  23. 23. JS Dates Create, read and format dates.
  24. 24. JS Math Math.round, floor, ceil, max, min, pow and sqrt.
  25. 25. JS Random Random numbers and random integers.
  26. 26. JS Booleans true, false, truthy and falsy values.
  27. 27. JS Comparisons Comparison and logical operators.
  28. 28. JS If Else Conditional statements.
  29. 29. JS Switch Select one of many code blocks.
  30. 30. JS Loop For for, for...of and for...in loops.
  31. 31. JS Loop While while and do...while loops.
  32. 32. JS Break break and continue in loops.
  33. 33. JS Sets & Maps Collections of unique values and key-value pairs.
  34. 34. JS Type Conversion String(), Number(), Boolean() and automatic conversion.
  35. 35. JS Destructuring Unpack values from arrays and objects; spread and rest.
  36. 36. JS Errors try, catch, finally and throw.
  37. 37. JS Scope Global, function and block scope.
  38. 38. JS Hoisting Declarations are moved to the top.
  39. 39. JS Use Strict Write safer JavaScript with "use strict".

Ready to learn JavaScript?

Create your account, unlock every lesson and quiz, earn points on the leaderboard and join our in-person classes.

Create free account
Chat with us 👋