December 2023
Intermediate to advanced
242 pages
5h 28m
English
| Recipe 9 | Intersecting HTML Tables with filter() |
Let’s say you have a sports app that displays statistics and scores. You have two objects and want to find properties that exist in both objects simultaneously. Your first object contains a list of national teams that have won the FIFA World Cup along with the total number of wins. Your second object includes similar information about the UEFA European Football Championship.
You want to create an HTML table that lists the intersection of the two objects, that is, a table of teams that have won at least one cup in both competitions.
The first step is to create an HTML table. You can delegate this task to JavaScript, but let’s keep it simple by having an HTML structure in place and using ...
Read now
Unlock full access