Skip to content

Commit

Permalink
javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayu-pr11 committed Jun 5, 2023
1 parent abb8c6d commit 8684613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pages/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>Weather Data</h1>

<script>
// Fetch weather data
fetch('http://api.weatherapi.com/v1/forecast.json?key=9e0198f1aff848e6a6c53224230506&q=New%20York&days=5')
fetch('https://api.weatherapi.com/v1/forecast.json?key=9e0198f1aff848e6a6c53224230506&q=New%20York&days=5')
.then(response => response.json())
.then(data => {
const weatherData = data.forecast.forecastday;
Expand Down

0 comments on commit 8684613

Please sign in to comment.