JavaScript
32.1K subscribers
1.06K photos
10 videos
33 files
737 links
A resourceful newsletter featuring the latest and most important news, articles, books and updates in the world of #javascript πŸš€ Don't miss our Quizzes!

Let's chat: @nairihar
Download Telegram
πŸ˜‚
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣937❀4πŸ‘3🀩2πŸ€”1
CHALLENGE ❓
function asyncQuiz() {
return new Promise((resolve) => {
setTimeout(() => resolve('Hello'), 1000);
});
}

async function runAsyncQuiz() {
const result = await asyncQuiz();
console.log(result);
}

runAsyncQuiz();
console.log('World');
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘11
❀2212πŸ€”9
Last minute fix πŸ˜…
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣9912πŸ‘5πŸ€”3🀩3
❓CHALLENGE


var a = 1;

function scopeQuiz() {
console.log(a);
var a = 2;
}

scopeQuiz();
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ€”23πŸ‘13❀72
What is the output?
Anonymous Quiz
41%
1
36%
2
18%
undefined
5%
Error
πŸ€”348πŸ‘6❀4🀩1
πŸ˜‚
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣98πŸ‘139πŸ€”5❀1🀩1
❓ CHALLENGE

function delayedLog(item) {
setTimeout(() => {
console.log(item);
}, 1000);
}
for (var i = 0; i < 3; i++) {
delayedLog(i);
}
Please open Telegram to view this post
VIEW IN TELEGRAM
6❀2
πŸ‘1313❀9🀣8πŸ€”1
🌲 PrimeVue 3.49.0: Vue UI Component Library

A mature, rich set of open source UI components for Vue developers we first mentioned a few years ago. This new release includes components to enter one time passwords and a β€˜stepper’ for wizard-style workflows. There’s also a new optional declarative syntax for using components that makes their code easier to read and write.

PRIMETEK
Please open Telegram to view this post
VIEW IN TELEGRAM
12πŸ‘8❀3πŸ€”2🀣2
❓ CHALLENGE


var a = 1;

const arrowQuiz = () => {
console.log(this.a);
};

arrowQuiz();
var a = 2;
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘17❀3🀩2πŸ€”1
What is the output?
Anonymous Quiz
38%
1
27%
2
29%
undefined
6%
Error
πŸ€”30πŸ‘7🀣3
🍊 Viz.js: Work with Graphviz in the Browser

Graphviz is a suite of open source graph drawing tools of some 30+ years’ vintage. Viz.js is a WebAssembly Graphviz build that brings some of its functionality into the browser, as seen in the homepage's live demo (above). GitHub repo.

MICHAEL DAINES
Please open Telegram to view this post
VIEW IN TELEGRAM
❀113πŸ‘2
❓ CHALLENGE

const x = [1, 2, 3];
const y = x;
y.push(4);
console.log(x.length);
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣1414πŸ‘6❀1
🀣17πŸ‘12🀩6❀2πŸ€”2
πŸ˜‚ hehe
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣82❀86🀩5πŸ€”3
❓ CHALLENGE

const obj = { a: 1, b: 2, c: 3 };
const result = Object.values(obj).reduce((acc, curr) => acc * curr, 1);
console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6
What is the output?
Anonymous Quiz
23%
undefined
14%
1
10%
5
53%
6
πŸ€”22🀣1212πŸ‘2
🌲 Graceful Shutdown in NodeJS

In this article, I will show you how to do a graceful shutdown in a NodeJS application, but first, let's describe what "graceful shutdown" means and why we need to do that in our application and what are the benefits.

nairihar
Please open Telegram to view this post
VIEW IN TELEGRAM
❀14πŸ‘95
❓ CHALLENGE

const person = { name: 'John', age: 30 };
const { name, ...rest } = person;
console.log(rest);
Please open Telegram to view this post
VIEW IN TELEGRAM
10πŸ‘8
πŸ‘15πŸ€”107🀣3