hi all, could use some help here. I have the below code. i have a winning piece of text, that is randomly generated everytime a button is clicked and then i want it inserted into the query part each time ( instead of the word sport). i’m using the google search API in my project.
function initMap() {
var map = new google.maps.Map(
document.getElementById('map'), {zoom: 15, center: {lat: 53.508709, lng: -6.460100},});
var request = {
location: {lat: 53.508709, lng: -6.460100},
radius: '10',
query: 'sport',
};