JavaScript From The Start


Real World Array Method Uses in JavaScript Web Development


Hide/Show description

A real world example of taking some sample weather data from the DarkSky API and creating a Grid of weather over a 24 hour period. Array.map( ), Array.filter( ), Array.forEach( ) and Array.reduce( ) are all demonstrated in creating the end product. JavaScript Code GIST: https://gist.github.com/prof3ssorSt3v3/f2cef1569568505a003177066be2dd07 HTML Code GIST: https://gist.github.com/prof3ssorSt3v3/98c93160cc0535e21e7c9f3d2d46bd5f Sample JSON Data Code GIST: https://gist.github.com/prof3ssorSt3v3/d2e2181160e8423afeb025e5ef54ba4f JavaScript Arrow Function video: https://www.youtube.com/watch?v=2v4bulVra-w Array filter video: https://www.youtube.com/watch?v=WrB_--bVbbs Array forEach video: https://www.youtube.com/watch?v=159EAISAxwg Array reduce video: https://www.youtube.com/watch?v=6_XzV25rkcE Array map video: https://www.youtube.com/watch?v=hfYa4ugeyuc DarkSky API video: https://www.youtube.com/watch?v=6f7EJ6GcD8Q