I have written code to call an api, from this url -
https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=MSFT&apikey=RO6QHBGM0A4VO7NT
And i want a user to enter a value in the site that the api takes in and concatenates to other values necessary to pull down the data.
The url as it is above, calls the api correctly, but when I try to replace the MSFT with actual user input the api call becomes invalid.
I have tried concatenating input with the url by replacing msft with let input = $('#stockInput').val() but to no avail.
The id of the element the user types in is stockInput.