Skip to content

Instantly share code, notes, and snippets.

View tranphuongdinh's full-sized avatar

Tran Phuong Dinh tranphuongdinh

View GitHub Profile
@tranphuongdinh
tranphuongdinh / avg.js
Created May 4, 2021 13:32 — forked from shivaluma/avg.js
Tinh diem trung binh hcmus
// tinh diem trung binh hcmus, vao trang diem va paste vao console.
// khong tinh anh van, quoc phong, the duc va nhung mon rot
var tinchi = document.querySelectorAll("td:nth-child(3)");
var monhoc = document.querySelectorAll("td:nth-child(2)");
var diem = document.querySelectorAll("td:nth-child(6)");
var diemtren = 0,
diemduoi = 0;
for (var i = 1; i < tinchi.length; i++) {