Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QI Get The Weather Using An API In this question , we ask you create a single web page that is completely self - contained
QI 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started