This code turns LED’s on but repeating it for the Off button with the changes needed doesn’t turn them off and I keep getting this message ERROR: Line: 6: TypeError: Cannot read property ‘on’ of undefined.
I know that we move on to the .length command after this but it seems like var i should work too.
Thanks!