Question: JSON Response example when code = BAHRAIN as follows: {country: Bahrain Temps {day:SUNDAY, te ), {dayDAY, mot 35), {dayTUESDAY, tenot 39). {day: WENESDAY,mt 37), {dayTHURSDAY,

 JSON Response example when code = BAHRAIN as follows: {"country": "Bahrain

JSON Response example when code = BAHRAIN as follows: {"country": "Bahrain "Temps {"day":"SUNDAY", "te" ), {"day""DAY", "mot 35), {"day""TUESDAY", "tenot 39). {"day": "WENESDAY",mt 37), {"day""THURSDAY", "p" 35). {"day":"FRIDAY","temp 34), {"day": SATURDAY","t": 37) Sample Example C Country Implement findTempl) function as follows: This function will be called whenever the user change the value of the pull-down menu. This function should contact the Web Service API, sending the selected country code, to display the information (country, daily temperatures in the week and average weekly temperature) inside the div tag whose id result as shown in the example on the right. In addition, the country name and the average temperatures should be saved as one JS object inside an array in a local storage. Whenever new request is made the country/average will be saved and added to the array inside the local storage (duplicates is allowed) (Tip: define JS Object with Country/Average properties) and then push it inside the array) 1. SUNDAY Tempis 37 2. MONDAY Top 35 3. TUESDAY Tempis 39 4. WEDNESDAY Temps 37 5. THURSDAY Tempis 35 6. FRIDAY Top 14 7. SATURDAY Tempis 37 Average Tum M6.285714285714285 Use the editor to format your

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!