This repository contains the commented javascript we used in Microsoft MakeCode for Circuit Playground Express.
I "wrote" this code using a block interface included in the platform. You can see this visual interface with the below images (clicking will bring you to a more interactive interface):