We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5707f23 commit c86e84eCopy full SHA for c86e84e
05-Weather-App/script.js
@@ -16,8 +16,7 @@ btn.onclick = () => {
16
// Consider fetching the key from a secure backend or prompting the user.
17
var key = "YOUR_API_KEY";
18
fetch(
19
- `https://api.openweathermap.org/data/2.5/weather?q=${val}
20
- &appid=${key}`
+ `https://api.openweathermap.org/data/2.5/weather?q=${val}&appid=${key}`
21
)
22
.then((res) => res.json())
23
.then((data) => {
0 commit comments