This file contains 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
let num = 0; | |
async function increment() { | |
num += await 2; | |
console.log(num); | |
} | |
increment(); | |
num += 1; | |
console.log(num); | |
/**** | |
* What is the resulting output? |
This file contains 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
console.log('a'); | |
let timmy = setTimeout(function () { | |
console.log('b'); | |
}, 1); | |
let timothy = setTimeout(function () { | |
console.log('c'); | |
}, 10); | |
let timer = setTimeout(function () { | |
console.log('d'); | |
}, 0); |
This file contains 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
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |