Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1 Get The Weather Using An API In this question, we ask you create a single web page that is completely self-contained (i.e. does not

image text in transcribed
image text in transcribed
Q1 Get The Weather Using An API In this question, we ask you create a single web page that is completely self-contained (i.e. does not load any external JavaScript files) and retrieve the current local weather using a free online service. There are several free weather service providers available; it's up to you to find one, study its API, figure out what endpoint to use, and write the JavaScript code to retrieve the current weather for Calgary. You will need to figure out how to decode the response from the API, which will most likely be a JSON-encoded object. You should retrieve at least the temperature and a description of the weather (e.g. partially cloudy, sunny, snowing, etc). Your web page should display this information, but does not need to be styled at all (i.e. don't waste time making it pretty, just display the weather by updating HTML DOM elements). Please make sure your HTML page validates through W3C and do not use document.write at all

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Statistics

Authors: Robert A Donnelly, Robert Donnelly Jr

2nd Edition

0133852288, 9780133852288

More Books

Students also viewed these General Management questions