I am creating a helper function to get weather data using open-weather api
require("dotenv").config();
import axios from "axios";
export const ...
For further actions, you may consider blocking this person and/or reporting abuse
Yes, since getWeatherData() is a promise you need to
awaitfor it or usethento get data out of it.For eg:
OR
I tried this. But there was slight mistake in my code. Thank you♥️