Getting started with JavaScript and hardware is super easy

I’m writing the final chapter of the book at the moment. I’m calling it “JavaScript technologies”. The idea is to leave the reader with some ideas of things that they can do with JavaScript that they might not expect. For example, how about a website that you can visit to turn a light on and off?

This has turned out to be a wonderful example of how simple it is to deploy complex technology today. You can start with an empty Raspberry Pi and a memory card and within a few minutes you an have a device that you can attach to your home network and access remotely. You can make the device host a web server, wire up a few pins (see above) and have a site you can access with the browser in your phone to make the light work. Completely amazing.