concept hardware in category javascript

This is an excerpt from Manning's book JavaScript on Things: Hacking hardware for web developers.
As a JavaScript-savvy web developer, you make logical alchemy happen every day. But now it’s possible to wield your software-development skills in a new way, to program and control things in the real world. In this chapter, you’ll learn about the hardware involved in different kinds of projects and devices, and you’ll also see how JavaScript and hardware can work together.
The hardware is now ready to communicate—the next step is to write software for the fan, using the host computer. For the hardware and software to understand each other, the host computer needs to bark out instructions in a language the microcontroller can comprehend. To make this happen, we can write code using a library or framework that implements the common API (figure 1.12).