commit b92ea2c36eee2779fcbaf2b82e29b72456a12245 Author: Luiz F Picolo Date: Fri Jan 26 03:20:24 2024 +0000 Add index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..b4755d9 --- /dev/null +++ b/index.js @@ -0,0 +1,9 @@ + +var cells = document.querySelectorAll('#proposta_trabalho tbody td:nth-child(3)'); +var soma = 0; + +cells.forEach(function(cell) { + soma += parseInt(cell.textContent); +}); + +console.log('A soma do campo "Nº aulas" é:', soma); \ No newline at end of file