mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
Update Step 1-0 exercise to match instructions
This commit is contained in:
@@ -74,13 +74,12 @@ function addTodo() {
|
||||
|
||||
### Cleanup
|
||||
|
||||
Now that our todo has been inserted into the DOM, we can clear the text input and call `updateRemaining()`.
|
||||
Now that our todo has been inserted into the DOM, we can clear the text input. In the exercise, we'll also update the count of the remaining todos in the footer from here.
|
||||
|
||||
```js
|
||||
function addTodo() {
|
||||
...
|
||||
clearInput('.textfield');
|
||||
updateRemaining();
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user