Can someone help me with Api’s in javascript

https://github.com/git-bbhu/weather-app

here is my github link i’m new to javascript i think the error is it’s showing 401 i have activated the api key and it’s still showing 401 please look at the js code and help me

I tried this after seeing this in a youtube video as expected it didn’t work so i asked a friend he ignored
me and tried looking for solutions in Chatgpt and didn’t so yeah i’m here