This question already has an answer here:
I have an "async" function in javascript like below:
async function getWeather(city, country) {
var response = await fetch(`https://api.openweathermap.org/data/2.5/weather?APPID=mykey&q=${city},${country}.json`);
var responseData = await response.json();
return responseData;
}
It is working properly for all the browsers but Internet Explorer v11. When I check the Console messages in Developer Tool, it shows the row async function getWeather(city, country) { and gives me the error below:
I've put semi-colon at the end of every rows, still seeing the same error. Any advice would be appreciated.

Aucun commentaire:
Enregistrer un commentaire