The Makecode spins the motor attached when the Circuit Playground Express detects a button press. Use the link below to open the code in a modern web browser:
MakeCode can load a program direct to your Circuit Playground Express with WebUSB using the Chrome web browser - see this guide page on setting that up.
Then visit the code for the project here: https://makecode.com/_f5MREEYjv7qf
This means code edit will upload directly to the Circuit Playground Express without the need to drag and drop file onto it!
Follow the instruction to set up your board and you'll be able to quickly send code to Circuit Playground Express!