DEV Community

Rusandu Galhena
Rusandu Galhena

Posted on

1 1

Light Bulb Challenge

Hi, This is one of the javascript challenges that was quite popular when I was studying Javascript. This challenge is a completly begginer friendly challenge for who ever began to code Javascript.
Bulb challenge is when you create button and when the user presses the button the content changes or in this case, the image of the unlit bulb changes to a lit bulb image when the use clicks on light off button.This challenge is performed by the onclick function in Javascript.
Hope this would be helpfull!!

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more