Posts by Daniel Passos • 11 points
3 posts
-
-1
votes1
answer37
viewsQ: Simplify function in JS
I wanted to know how to simplify this function by having two different modals, it is possible ? // Modal Carrinho const abrirModal = document.querySelector('[data-modal="abrir"]'); const fecharModal…
-
0
votes1
answer72
viewsQ: Uncaught Typeerror: Cannot read Property 'num' of Undefined at Htmlanchorelement.addItem
I started doing the program in JS to have interaction with the front and I got this error. When it is to show the product, it works by showing the product name on the console, but beats this error,…
-
0
votes0
answers36
viewsQ: querySelectorAll does not work
I’m trying to pull some html tags to run my script, but I used querySelector and it didn’t work, below the code. I have several spans of this, I wonder how I solve, use the console and does not…