Skip to content

Instantly share code, notes, and snippets.

View palevoo's full-sized avatar
🦄

wijuwiju palevoo

🦄
View GitHub Profile

Keybase proof

I hereby claim:

  • I am palevoo on github.
  • I am wijuwiju (https://keybase.io/wijuwiju) on keybase.
  • I have a public key ASBtUSLTNl4YKZEoRclWzuN4HzSgIxK_-oPdvnPpNvf-cwo

To claim this, I am signing this object:

@palevoo
palevoo / async.js
Created December 1, 2017 10:12 — forked from arol/async.js
Asynchronicity exercise
const randomNumber = () => {
return Math.random();
}
// 1. Make it wait for 1 sec. with `setTimeout`
const timeoutRandomNumber = () => {
}
// 2. Now wrap the timeout version to work with promises