How to turn 6 LED's on?

Hello, I'm new to the Arduino program. I have a question, I've got 6 alligator clips connected from the Lilypad to 6 different LED's (3 red 3 green). What is the code to turn these LED's on and off?

I assume you also have resistors in seriese with the LEDs as well.
To turn them on use the digitalWrite(pin, HIGH) ; where pin is the number of the pin that is attached to the LED you want to turn on. To turn it off subistitute LOW or HIGH.

for (int i =0; i < N_LEDS; i ++){
  digitalWrite (ledPin[i], HIGH);
}

could be one way of turning them off.

Unfortunately the knight rider example seems broken:

But there's
MultiBlink Arduino Playground - MultiBlink

FancyLED ( GitHub - carlynorama/Arduino-Library-FancyLED: Arduino Library for working with LEDs. Includes non-delay blinking, toggling status and other features ) looks complicated to get started, IMO
and Blinkenlight assumes 20 LED, which is a task of its own to reduce to 6.