Firstly, you can view this link https://makecode.micro:bit.org/reference to
find more information about micro: bit blocks. Then this link
https://makecode.micro:bit.org/ can help you write code.
Command blocks can be found on the right:
Make combinations of these blocks:
Click the arrow behind“JS JavaScript”to select between“JavaScript”and