When the new quote button is clicked only the last quote from the api is shown .I don’t understand what I m doing wrong.
My code
https://codepen.io/yog9/pen/WKPOWM
You might want to try to store the response in a local array after the success callback, and every time the button is clicked array shift the data to html.
also to see what the response looks like:
console.log(data)
so you can figure out how to traverse it