Codecademy Practice

Address Book - Part 2

Challenge: We are now going to implement the search functionality. When the user enters some text, we return the rows that match that search query in any of the columns. As opposed to the delete feature, the search is not an exact match, and can also match text in any of the columns, not only the name column.

Things you’ll practice: Iterators, working with tables.

Example:

(contacts table is displayed)
Search in contacts database:
Hop
(Kato Hopkins is returned)
Video showing how searching contacts works.

Step by step instructions:

HTML

CSS

JS

// pseudocode

loop through the rows of the table body (row) {
  // (the row cells can be converted into an array)

  loop through the cells of the current row (cell) {
    // do something with the cell
  }
}

GIT

Work in the same project but in a new branch. When the branch is ready create a pull request and ping me to review.

DEBUGGING

Use console.log() as usual.