Created
December 17, 2018 18:26
-
-
Save doug-numetric/83914f30a351f02b4df64e9223db64b1 to your computer and use it in GitHub Desktop.
lab.js
This file contains hidden or 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
const fetch = require('node-fetch'); | |
const url = 'https://www.random.org/decimal-fractions/?num=1&dec=10&col=1&format=plain&rnd=new'; | |
fetch(url).then(response => response.text()) | |
.then(textNumber => { | |
console.log(textNumber); | |
}); | |
// write implementation fo threeRandomNumbers here | |
(async () => { | |
for await (const number of threeRandomNumbers()) { | |
console.log(number); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment