JavaScript
32.1K subscribers
1.06K photos
10 videos
33 files
734 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
πŸ“– PDFKit: PDF Generation Library for Node and Browser

A (very) long standing project, but that continues to get updates. There’s an interesting live demo that runs right in the browser. GitHub repo.

DEVON GOVETT
❀8πŸ‘3πŸ”₯2
❓ CHALLENGE #200
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘3πŸ€”1
❀6πŸ‘4πŸ”₯3🀩3
πŸ‘©β€πŸ’» 'A Node + TypeScript + ts-node + ESM Experience That Works'

It’s just three files: package.json, tsconfig.json and a utilities file, and you’re good to go. As someone on Hacker News said: β€œSometimes the most valuable guide is a working example.” The associated comment thread is worth checking out for some extra background, too.

πŸ₯³ Talking of which,
TypeScript 5.3 has been released. It supports the latest updates to the import attributes proposal, has enhanced type narrowing in numerous contexts, provides interactive inlay hints for types in the editor, and more.

KHALID ZOABI
Please open Telegram to view this post
VIEW IN TELEGRAM
🀩5πŸ‘3πŸ”₯1
❓ CHALLENGE #201
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2
What is the output?
Anonymous Quiz
17%
"A"
46%
"B"
18%
"C"
19%
Error
πŸ”₯6πŸ‘4❀2
πŸ˜‚ NO eye contact and NO feeding

I am Programmer,I have no life.
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣35❀4πŸ”₯3πŸ‘2🀩1
❓ CHALLENGE #202

let a = 1;
{
let a = 2;
}
a+=1;
console.log(a);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘21πŸ”₯3
What is the output?
Anonymous Quiz
16%
Error
20%
3
9%
1
55%
2
πŸ‘24❀6πŸ”₯4🀩3🀣2
πŸ€”5
Which challenge template do you prefer?
Anonymous Poll
35%
Old one (images)
65%
New one (code, copyable)
🀩12πŸ‘8❀5πŸ€”1
❓ CHALLENGE #203

const asyncFunction = async () => {
try {
await Promise.reject("Oops!");
} catch (error) {
return "Caught: " + error;
} finally {
return "Finally block executed";
}
};

asyncFunction().then(result => console.log(result));
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘14❀5πŸ”₯5
❀2
This media is not supported in your browser
VIEW IN TELEGRAM
Why Should You ⭐ This?

Because it's not just an empty repository; it's an existential experience. By starring, you become part of the nothingness revolution. Join us in the pursuit of emptiness!

https://github.com/nairihar/the-most-starred-readme
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯8🀩6❀2πŸ€”2
❓ CHALLENGE #204


const emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
const emails = ["[email protected]", "john.doe@gmail.", "invalid-email", "[email protected]"];

const validEmails = emails.filter(email => emailPattern.test(email));

console.log(validEmails);
Please open Telegram to view this post
VIEW IN TELEGRAM
Do you know HTML 😎 ???
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣43πŸ‘7πŸ”₯6
❓ CHALLENGE #205


function asyncFunction(value) {
return new Promise(resolve => {
setTimeout(() => {
console.log(value);
resolve(value);
}, 1000);
});
}

(async () => {
const results = await Promise.all([asyncFunction(1), asyncFunction(2), asyncFunction(3)]);
console.log(results);
})();
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘14
πŸ”₯9πŸ€”6πŸ‘4❀2
☠️
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ€”23🀣20❀3πŸ‘1🀩1
❓ CHALLENGE #206


for (var i = 0; i < 3; i++) {
const log = () => {
console.log(i)
}
setTimeout(log, 100)
}
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6πŸ”₯2❀1