mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
fixed step 3 bug
This commit is contained in:
@@ -48,7 +48,8 @@
|
||||
|
||||
function updateRemaining() {
|
||||
const remaining = document.querySelector('.remaining');
|
||||
const todos = document.querySelectorAll('.todo');
|
||||
const todos = document.querySelectorAll('.todo').length;
|
||||
console.log(todos);
|
||||
remaining.innerText = todos;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user