Skip to content

Instantly share code, notes, and snippets.

View inzamambaig's full-sized avatar

Inzamam Baig inzamambaig

View GitHub Profile
@bradtraversy
bradtraversy / eslint_prettier_airbnb.md
Created July 19, 2019 17:54
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
let num = 0;
async function increment() {
num += await 2;
console.log(num);
}
increment();
num += 1;
console.log(num);
/****
* What is the resulting output?
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);
@chranderson
chranderson / nvmCommands.js
Last active March 9, 2025 14:35
Useful NVM commands
// 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