Workshop › Simon Says Colors › Step 11 of 27
A pad is lit for a number of frames. light(pad, frames) sets which pad is lit (lit) and for how long (litFor).
```js
let litFor = 0
function light(pad, frames) {
lit = pad
litFor = frames
}
```litFor counts how many frames the lit pad stays lit.light takes two parameters: the pad number and the number of frames.let lit, write let litFor = 0.function draw, write light and an empty line.Skills: Functions
← Show the round Go dark again →