Posts by Gregory Guimarães • 13 points
2 posts
-
0
votes1
answer164
viewsA: Array does not add data to the last element via the push method in a click function
Try to give a preventDefault() in the form. let botao = document.getElementById('botao') botao.addEventListener('click', guardar) let cadastro = [] function guardar(element) {…
-
1
votes1
answer57
viewsQ: Cannot read Property 'value' of null
I created a function in javascript, but it returns me the following error: Cannot read Property 'value' of null Follow a piece of code: function defineLetrar() { var obj; for (var i = 0; i <= 10;…
javascriptasked Gregory Guimarães 13