Currently app,js contains two main functions: onSearch() and createTableData(). There is also a function for fetching the dinosaurs from the API in fetch.js.
Refactor app.js so that the dinosaurs are fetched using the code in fetch.js, then onSearch() and createTableData() are called on those dinosaurs.
Currently app,js contains two main functions: onSearch() and createTableData(). There is also a function for fetching the dinosaurs from the API in fetch.js.
Refactor app.js so that the dinosaurs are fetched using the code in fetch.js, then onSearch() and createTableData() are called on those dinosaurs.