You'll need the Raspberry Pi that you set up in Chapter 1, Setting Up Your Development Environment, a breadboard, and a Pi Cobbler for easier pin access. You can get a Pi Cobbler (also sometimes called a Pi Wedge) from Adafruit, SparkFun, or Amazon. A Pi Cobbler also comes in the kits recommended in Chapter 1, Setting Up Your Development Environment.
The example code for this chapter is here:Â https://github.com/PacktPublishing/Hands-On-Robotics-with-JavaScript/tree/master/Chapter02.
The following diagram shows two different Raspberry Pi Cobblers, both from Adafruit. The one on the right has the ribbon cable attached:

We'll talk about how to set up the cobbler later in this chapter. You'll also need an LED, some jumper or breadboard wires, and a 330-ohm resistor.
In case you're asking yourself what's a resistor...