For this project, you will need a regular LED of any color, and a TSL2561 light sensor, available on Adafruit (https://www.adafruit.com/product/439) and through many other providers.
The code for this chapter is available at https://github.com/PacktPublishing/Hands-On-Robotics-with-JavaScript/tree/master/Chapter05.