JavaScript — an introduction

introducing the programming language of the internet
// updated 2025-05-02 08:37

JavaScript, as an internet programming language, allows webpages to:

  • changes its content and/or appearance
    • based on user input, or
    • some changing condition

As we will see, the JavaScript programming language contains many elements that we can find in any other programming language. After all, a programming language must contain certain features (e.g. variables, branching, looping, etc.) to be considered a programming language!

Still, JavaScript contains some features that make it one of the best languages for writing programs for an Internet setting. We may also find JavaScript used in non-browser settings, and maybe even in some non-Internet programs.

Topics

  • Setup
  • JavaScript programming basics
    • 📒🗄️ Data types
    • Variables
    • Operators
    • Branching
    • Looping
    • Functions
    • Scope
    • Objects
    • Arrays
    • Higher-order functions
    • Modules
    • Event handling
    • Delays
    • Error handling
    • Built-in objects
    • Built-in functions
  • Javascript and the Internet
    • DOM access
    • DOM traversal
    • DOM manipulation
    • Global objects
  • Javascript and external data manipulation
    • JSON
    • Fetch
  • Advanced topics
    • Escape strings
    • String interpolation
    • ASCII
    • Ternary operators
    • Nullish coalescing
    • Destructuring
    • Recursion
    • Currying
  • Optional topics
    • How JavaScript works
    • Console styling

newer (in textbook-javascript) ➡️
JavaScript in HTML 📒
⬅️ older (in code)
🎨 CSS grid
newer (in code) ➡️
JavaScript in HTML 📒
⬅️ older (posts)
🎨 CSS grid
newer (posts) ➡️
JavaScript in HTML 📒