Code continuous red, green, and blue cycles in an RGB LED with a short pause between each.
Create a list of colors and then continuously loop through them and set their value to the RGB LED.
let list = [sb.colorLabel(SBColor.Red), sb.colorLabel(SBColor.Green), sb.colorLabel(SBColor.Blue)]
basic.forever(function () {
    for (let value of list) {
        sb.setRgbLedColor(sb.rgbLed(SBRgbLed.RgbLedA), value)
        basic.pause(1000)
    }
})If using micro:bit for the first time, follow this setup.