Skip to content

Instantly share code, notes, and snippets.

@gitmrwick
gitmrwick / can-script_condensed.js
Created January 3, 2020 19:52
helping javascript global scope confusion
fetch('products.json').then(function(response) {
return response.json();
}).then(function(json) {
initialize(json);
}).catch(function(err) {
console.log('Fetch problem: ' + err.message);
});
function initialize(json) {
finalGroup = json;