Instructions
Now, when you use your mouse to click on button A in the virtual micro:bit it will
scroll the message. You could also now try this on a real micro:bit.
JavaScript and Python
The Blocks editor is primarily for editing your programs as Blocks. But you can also
use it to view or edit your programs in JavaScript or Python programming language
if you prefer.
To try this out, open the code for Project 7 (Nightlight). Here's the blocks view of the
code.
You will notice that at the top of the window, there is a tab button labelled
JavaScript. This has a drop-down list that you can set to either JavaScript or
Python. If you set the dropdown to Python, the blocks disappear from the editor
area and the equivalent Python code will be shown.
Page 21