Getting started:
Related tutorials:
Getting started:
Related tutorials:
Getting started:
Related tutorials:
| // log the `rnd` result in the console using all three async techniques. | |
| // You can only call console.log inside the `main` function. | |
| const randomNumber = () => { | |
| return Math.random(); | |
| } | |
| // 1. Make it wait for 1 sec. with `setTimeout` and log it on main function | |
| const timeoutRandomNumber = () => { | |