Discussion of the sign on the dashboard at https://sbm-it.github.io/BIG-Portal-Prototype/.
Starting with Joe
I love fetch and promises:
fetch('https://data.cdc.gov/api/views/bi63-dtpu/rows.json') .then( function(response) { if (response.status !== 200) { console.log('Looks like there was a problem. Status Code: ' + response.status); return; } // Examine the text in the response response.json().then(function(data) { console.log(data); }); } ) .catch(function(err) { console.log('Fetch Error :-S
', err); });
Let's dissect it ...
In response to popular postcast https://syntax.fm/show/043/20-javascript-array-and-object-methods-to-make-you-a-better-developer
using fecth to play with array methods: https://beta.observablehq.com/@jonasalmeida/fetch
10 mins selection: https://www.youtube.com/watch?v=NeF0zpT4gNE