Micro:bit JavaScript Blocks Editor: Turning LEDs on and off

The objective of this post is to explain how to turn on, turn off and toggle the LEDs from the micro:bit LED matrix. We will be using the using JavaScript Blocks Editor for developing our code.