Skip to content

Instantly share code, notes, and snippets.

@hasangenc0
Last active February 7, 2021 15:00
Show Gist options
  • Save hasangenc0/69ce6498a5044a9d5f5bcfa7c6cf524b to your computer and use it in GitHub Desktop.
Save hasangenc0/69ce6498a5044a9d5f5bcfa7c6cf524b to your computer and use it in GitHub Desktop.
Gist bot example
table = document.querySelector("table");
sum = 0;
for (var i = 0, row; row = table.rows[i]; i++) {
for (var j = 0, col; col = row.cells[j]; j++) {
if (j ==2 && i > 0) {
sum += Number(col.innerHTML.replaceAll(',', ''));
}
}
}
console.log({sum});
@hasangenc0
Copy link
Author

comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment