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