Add index.js

This commit is contained in:
Luiz F Picolo 2024-01-26 03:20:24 +00:00
commit b92ea2c36e

9
index.js Normal file
View File

@ -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);