diff --git a/javascript.md b/javascript.md index 04896a0..98260c5 100644 --- a/javascript.md +++ b/javascript.md @@ -1446,7 +1446,7 @@ const getSuggestions = async () => { const wordQuery = inputField.value; const endpoint = `${url}${queryParams}${wordQuery}`; try{ -const response = __~await~__ __~fetch(endpoint, {cache: 'no-cache'}); +const response = await fetch(endpoint, {cache: 'no-cache'}); if(response.ok){ const jsonResponse = await response.json() }