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
var arr = [27,30,23,20,22,25,29,24]; | |
function absent( arr ) { | |
var mia= [], min= Math.min.apply('',arr), max= Math.max.apply('',arr); | |
while(min<max){ | |
if(arr.indexOf(++min)== -1) mia.push(min); | |
} |
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 sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); | |
async function sleepWork(){ | |
console.log("I'm going to sleep"); | |
await sleep(100); | |
console.log("I wake up"); | |
} | |
sleepWork(); |
NewerOlder