I’m working on the local weather app and have a few things I would like help with.
I’ve noticed that when I first load it it gives me the weather in Japan but when reloaded it works with my location. Is there a way I can fix this?
Is it possible to set the value in a div equal to a variable in js? I ask because the data get set to the div but I don’t know how to declare the temp as a var to use in a convert function.
How can I add an event listener to my button element with id convert? I have one under the place where I invoke the call to the API when the document is ready but it doesn’t work