Blocks language

Blocks snap into each other to define the program that your micro:bit will run. Blocks can be event (buttons, shake, …) or need to be snapped into an event to run. The on-start event runs first.


for (let i = 0;i<5;++i) {}
if (true){}
let x = 0;

Built-in objects


See Also

logic, loops, variables, math, text, arrays

on-start, javascript blocks, custom blocks