Skip to content

Commit c86e84e

Browse files
Update 05-Weather-App/script.js
Co-authored-by: Copilot <[email protected]>
1 parent 5707f23 commit c86e84e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

05-Weather-App/script.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ btn.onclick = () => {
1616
// Consider fetching the key from a secure backend or prompting the user.
1717
var key = "YOUR_API_KEY";
1818
fetch(
19-
`https://api.openweathermap.org/data/2.5/weather?q=${val}
20-
&appid=${key}`
19+
`https://api.openweathermap.org/data/2.5/weather?q=${val}&appid=${key}`
2120
)
2221
.then((res) => res.json())
2322
.then((data) => {

0 commit comments

Comments
 (0)