Is it possible to write this code in a simpler way?
I just made this piece of code in order to light the bulb and switch it off.  The bulb has an "on" cl...
Tags: javascript, codenewbie, beginners, refactorit