Currency Conversion API - Need to add a search history -- 2

Job ID: 33532341

Budget: $10 – $30 USD

I have a localhost page that uses a currency conversion API to take user inputs and convert their amount and currency to another.

The problem I am having is that I need to have the page record and display the 5 previous searches/conversions on the same page. I can't seem to figure out how to incorporate the array and loop it to display the 5 previous searches, it only wants to display the last search.

This is all that I need fixed/added to my code. The rest of it works fine for my needs.
Related categories: JavaScript HTML Node.js Express JS