Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created March 16, 2019 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/d157ae0871aa10b1e8b0b2d5d87bf39a to your computer and use it in GitHub Desktop.
Save NMZivkovic/d157ae0871aa10b1e8b0b2d5d87bf39a to your computer and use it in GitHub Desktop.
/**
* @desc retrieves data from defined location
* @return wine data as json
*/
async function getDataFunction() {
const wineDataReq = await fetch('https://raw.githubusercontent.com/NMZivkovic/file_hosting/master/wine_quality.json');
const wineData = await wineDataReq.json();
return wineData;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment