contador-aulas/index.js

9 lines
228 B
JavaScript
Raw Normal View History

2024-01-26 03:20:24 +00:00
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);