I can’t think of anything I’m specifically doing wrong, it’s not even getting as far as the alert function.
Blasted Google Chrome!
To get around this problem when using chrome is to set codepen to https and use https://crossorigin.me in front of your open weather map api url. Good luck!