流云诸葛

Results 4 comments of 流云诸葛

```js function LazyMan(name) { console.log(`Hi I am ${name}`) let totalSleepFirst = 0 let callbacks = [] function fire() { if (totalSleepFirst) return if (callbacks.length === 0) return function run(){ if(callbacks.length...

```js let arr = '红蓝蓝黄红黄蓝红红黄红'.split('') let i = 0; let order = ['黄', '红', 0]; let next = 0; while (order[next]) { for (j = i + 1; j <...

```js function print(n){ setTimeout(() => { console.log(n); },0, Math.floor(Math.random() * 1000)); } for(var i = 0; i < 100; i++){ print(i); } ```