👍24❤6🔥4🤩3🤣2
Which challenge template do you prefer?
Anonymous Poll
35%
Old one (images)
65%
New one (code, copyable)
🤩12👍8❤5🤔1
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
What is the output
Anonymous Quiz
12%
Error
14%
[object Promise]
44%
"Finally block executed"
29%
"Caught: Oops!"
❤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
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
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
What is the output?
Anonymous Quiz
9%
[]
33%
["[email protected]", "john.doe@gmail.", "invalid-email", "[email protected]"]
19%
["[email protected]", "john.doe@gmail."]
39%
["[email protected]", "[email protected]"]
❤15🔥7🤔4👍2🤣2
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣43👍7🔥6
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
What is the output?
Anonymous Quiz
50%
1, 2, 3, [1, 2, 3]
27%
[1, 2, 3], 1, 2, 3
15%
1, 1, 1, [1, 2, 3]
8%
1, 2, 3, [3, 3, 3]
🔥9🤔6👍4❤2
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
🤣21🔥8🤔6❤4👍2
var a = 1
function output () {
console.log(a)
var a = 2
console.log(a)
}
console.log(a)
output()
console.log(a)
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣15👍6❤1🔥1
🤔39❤9🤣7🤩2👍1🔥1
Angular 17 was released last week and a significant enhancement was support for a new syntax in templates that looks and feels more JavaScript-y.
DMYTRO MEZHENSKYI
Please open Telegram to view this post
VIEW IN TELEGRAM
❤5👍3🔥2
const asyncFunction = async () => {
const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms));
const result = await Promise.race([delay(100), delay(500)]);
return result;
};
asyncFunction().then(value => console.log(value));
Please open Telegram to view this post
VIEW IN TELEGRAM
👍9❤5🔥2🤔2
❤2🤔1
Hey awesome community members! 🎉
Guess what? Our favorite programming language, JavaScript, just turned 28 on December 4th!🎂 🥳
Can you believe it's been powering the web for nearly three decades now?
Let's take a moment to appreciate the incredible journey of innovation and transformation it has brought to the world of coding. 🚀✨
Happy Birthday JavaScript
Guess what? Our favorite programming language, JavaScript, just turned 28 on December 4th!
Can you believe it's been powering the web for nearly three decades now?
Let's take a moment to appreciate the incredible journey of innovation and transformation it has brought to the world of coding. 🚀
Happy Birthday JavaScript
Please open Telegram to view this post
VIEW IN TELEGRAM
❤35🔥8🤩4👍2