HTML and CSS Reference
You may have noticed that the loadTasks function accepts an optional argument, q . The
application will only pass a query to loadTasks when it wants to filter the results by
what the user has entered in the search box.
Step 5: Implement the search interface for the task view list
To implement the search interface for the application, add the following code immediately
after the code from the previous listing.
Listing 5.13. app.js—Searching for tasks
Try it out
If you reload the application in your browser, you should see a friendly message telling you