async function searchAPI(query, numberOfResults, key, offset, rating, language) {
    const queryURL = createSearchURL(query, numberOfResults, key, offset, rating, language);
    const searchResults = await fetch(queryURL);
    const resultObject = await searchResults.json();
    return resultObject;
}
// searches the giphy api. Returns a promise
searches the giphy api. Returns a promise
searches the giphy api . Returns a promise
async function searchAPI(query, numberOfResults, key, offset, rating, language) {
    const queryURL = createSearchURL(query, numberOfResults, key, offset, rating, language);
    const searchResults = await fetch(queryURL);
    const resultObject = await searchResults.json();
    return resultObject;
}
async function searchAPI ( query , numberOfResults , key , offset , rating , language ) { const queryURL = createSearchURL ( query , numberOfResults , key , offset , rating , language ) ; const searchResults = await fetch ( queryURL ) ; const resultObject = await searchResults . json ( ) ; return resultObject ; }
searches the giphy api.
searches the giphy api .