how can i fix this async problem (i think). why the input is not read before the fetch.
const key= const searchInput = document.querySelector(