04-Dates
TWO CONDITIONALS
url = baseURL + '?api-key=' + key + '&page=' + pageNumber + '&q=' + searchTerm.value;
//INSERT HERE
if(startDate.value !== '') {
console.log(startDate.value)
url += '&begin_date=' + startDate.value;
};
if(endDate.value !== '') {
url += '&end_date=' + endDate.value;
};
//END HERE
fetch(url).then(function(result) {More Options
Last updated