Statements
The following JavaScript statements are supported for the micro:bit:
Variable declarations
Block-structured statements
{ }block statementif-elseconditional statementwhileloopdo-whileloopfor(;;)loopswitchstatement (on numbers only)