Posts by Gabriel Minatto • 11 points
1 post
-
1
votes5
answers3268
viewsA: Make lamp light on and off
I believe this does what you need: function liga_desliga(){ const lamp = document.querySelector('#lamp'); var src = ['lampada-on.jpg','lampada-off.jpg'] .filter((value) => { var a =…
javascriptanswered Gabriel Minatto 11