fixed step 3 bug

This commit is contained in:
Micah Godbolt
2019-02-26 08:57:32 -08:00
parent 7d667988e0
commit 3a197e879a
2 changed files with 2 additions and 15 deletions

View File

@@ -1,14 +0,0 @@
<!DOCTYPE html>
<html>
<head></head>
<body>
<header>
<h1></h1>
<div class="addTodo"></div>
<nav></nav>
</header>
<main class="filter"></main>
<footer></footer>
</body>
</html>

View File

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