EDIT: ok, I guess the main problem was that my Obj can’t read the porperty I need because they don’t exist yet, so it record an “undefined”.
This happens because JS works in an async way… but how can I manage it?
I’m working on the weather app on codepen. Here’s my pen
I’m trying to get current coordinates in order to use them for weather API. The rest of JS file is about a widget I found on thw weather API websites and that widget is no more executed once I added the navigation code above. So something get stuck, i guess.
Why can’t I get my coords in this example? Is there anything wrong in the code or is this something related to a codepen behaviour?
Thank you for your help!