JSFiddle - React, Tailwind, and code Playground
by Ada Gonzalez
JavaScript
var weatherapp = [{
"coord": {
"lon": -79.39,
"lat": 43.65
},
"sys": {
"message": 0.0661,
"country": "Canada",
"sunrise": 1393070654,
"sunset": 1393109857
},
"weather": [{
"id": 800,
"main": "Clear",
"description": "sky is clear",
"icon": "01d"
}],
"base": "cmc stations",
"main": {
"temp": 275.39,
"pressure": 1010,
"humidity": 40,
"temp_min": 274.15,
"temp_max": 276.15
},
"wind": {
"speed": 8.2,
"deg": 250,
"gust": 12.9
},
"clouds": {
"all": 1
},
"dt": 1393097763,
"id": 6167865,
"name": "Toronto",
"cod": 200
},
{
"coord": {
"lon": -95.36,
"lat": 29.76
},
"sys": {
"message": 0.0322,
"country": "US",
"sunrise": 1393073615,
"sunset": 1393114564
},
"weather": [{
"id": 802,
"main": "Clouds",
"description": "scattered clouds",
"icon": "03d"
}],
"base": "cmc stations",
"main": {
"temp": 293.53,
"humidity": 55,
"pressure": 1012.8,
"temp_min": 292.15,
"temp_max": 294.65
},
"wind": {
"speed": 5.51,
"deg": 125.003
},
"clouds": {
"all": 36
},
"dt": 1393096167,
"id": 4699066,
"name": "Houston",
"cod": 200
}];
alert(weatherapp.length);