2025-09

Learning web development: Installing npm packages and bundling

[2025-09-07] dev, javascript, learning web dev

In this chapter we develop a small web app in the same way that large professional web apps are developed:

  • We use libraries that we install via npm.
  • We write tests for some of the functionality.
  • We combine all JavaScript code into a single file before we serve the web app. That is called bundling. (Why we do that it explained later.)

Learning web development: Asynchronous JavaScript – Promises and async functions

[2025-09-02] dev, javascript, learning web dev

In this chapter, we learn how to handle tasks that take a long time to complete – think downloading a file. The mechanisms for doing that, Promises and async functions are an important foundation of JavaScript and enable us to do a variety of interesting things.

2025-08

Learning web development: JSON and processing files in Node.js

[2025-08-31] dev, javascript, learning web dev

In this chapter, we explore the popular data format JSON. And we implement shell commands via Node.js that read and write files.

Learning web development: JavaScript Maps

[2025-08-30] dev, javascript, learning web dev

In this chapter, we’ll explore the data structure Map (a class) which lets us translate (“map”) from an input value to an output value. We’ll use a Map to display text upside-down in a terminal!

Learning web development: JavaScript exceptions

[2025-08-29] dev, javascript, learning web dev

In this chapter, we look at exceptions in JavaScript. They are a way of handling errors. We’ll need them for the next chapter.

JavaScript’s trademark problem

[2025-08-29] dev, javascript

In this blog post, we discuss Oracle’s trademark of the word “JavaScript”:

  • What are the problems caused by that trademark?
  • How can we fix those problems?

Learning web development: Plain objects in JavaScript

[2025-08-28] dev, javascript, learning web dev

In this chapter, we learn how to create plain objects with properties. We use them to create a simple flash card app.

Learning web development: Modules and testing in JavaScript

[2025-08-27] dev, javascript, learning web dev

So far, all of our JavaScript code resided in a single file – be it an .html file or a .js file. In this chapter, we learn how to split it up into multiple files. And how to automatically test if the code we write is correct.

Learning web development: Using web servers and npm

[2025-08-26] dev, javascript, learning web dev

In this chapter, we run a web server on our own computer and use it to serve a web app.

Learning web development: Shells and Node.js

[2025-08-25] dev, javascript, learning web dev

In this chapter we explore two topics:

  • A shell is like browser console, but for the operating system instead of for JavaScript. It helps us with programming by running the tools (programs) we need to get things done.
  • Node.js is a program that lets us run JavaScript code outside browsers – which we can use for a variety of things.