Coding task · JavaScript and TypeScript course · Module 9: Design Patterns and Architecture

Exercise: Dashboard Interface

Build the main park dashboard rendered from data by the ParkInterface class.

Task

The index.html file has a #park-app container and a script with the ParkInterface class, which builds the park dashboard from the parkData data (the look of the panels is in style.css). Fill in the blanks: ___BLANK1___ is the array method that turns every dinosaur into a string with an <li> element, ___BLANK2___ is the array method that joins these strings into one (without commas between them), and ___BLANK3___ is the element property through which render() inserts the finished HTML into the container. After the page runs, #park-app should contain three .panel panels with h2 headings, the first one with a list of all dinosaurs; render() should also work for another container and other data.