Posts by Livia • 11 points
1 post
-
1
votes5
answers4870
viewsA: Question on how to call the function with each mouse button
I was also trying to solve this same exercise, and I got it this way: tela.addEventListener('mousedown', function(evento){ switch(evento.which){ case 1: console.log("botão esquerdo"); tela.onclick =…
javascriptanswered Livia 11