Get the calculateAverageScore function from the internet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { calculateAverageScore } from 'https://raw.githubusercontent.com/minnacaptain/have-you-tried-deno-yet/master/calculate.ts' | |
const getContentFromInternet = () => | |
fetch( | |
"https://raw.githubusercontent.com/minnacaptain/have-you-tried-deno-yet/master/example_data.txt", | |
).then((t) => t.text()); | |
console.log( | |
"Average score: " + await calculateAverageScore(getContentFromInternet), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment