Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MKAIF5 authored May 21, 2024
1 parent 9900125 commit 1d8c5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let url =
const searchWeather = () => {
fetch(url + "&q=" + getInput.value)
.then((responsive) => responsive.json())
.then((data) => {
.then( (data) => {
console.log(data);
if (data.cod == 200) {
city.querySelector("figcaption").innerHTML = data.name;
Expand Down

0 comments on commit 1d8c5bf

Please sign in to comment.