CHALLENGE
const array = [1, 2, 3];
const obj = { a: 1, b: 2 };
array.push(obj);
obj.a = 3;
console.log(array[3].a);
👍8🤔1
🤔11🔥9👍6
We are excited to share that our JavaScript newsletter has become quite popular in our community!
With 21k subscribers and around 80 new joiners every day, we see a fantastic engagement with 20-30K reads daily.
If your company is interested in sponsoring and collaborating with our newsletter, we'd love to hear from you!
Feel free to contact me.
Please open Telegram to view this post
VIEW IN TELEGRAM
👍6❤4🔥4
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥8👍5❤4
SPONSORED BY Blacksmith 👩🚒
Run GitHub Actions 2x faster at half the cost.
CHALLENGE❓
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
const obj = {
a: 1,
b() {
return new Promise(resolve => {
setTimeout(() => {
resolve(this.a);
}, 100);
});
}
};
obj.b().then(console.log);
obj.a = 2;
Please open Telegram to view this post
VIEW IN TELEGRAM
👍18🔥6🤔6❤5
👍19
SPONSORED BY Blacksmith 👩🚒
Run GitHub Actions 2x faster at half the cost.
✌️ I am not... I repeat, I am not... a "frontend developer", just because I like to write JS.
I'm also not a "backend developer" b/c I like to write communication-oriented code, to manage and transmit data and juggle asynchony and other non-UI stuff.
I'm a middle-end dev. Forever. I build libraries, tools, etc. My product is what another dev uses to build their product.
Kyle Simpson
Run GitHub Actions 2x faster at half the cost.
I'm also not a "backend developer" b/c I like to write communication-oriented code, to manage and transmit data and juggle asynchony and other non-UI stuff.
I'm a middle-end dev. Forever. I build libraries, tools, etc. My product is what another dev uses to build their product.
Kyle Simpson
Please open Telegram to view this post
VIEW IN TELEGRAM
👍9🔥7❤4
SPONSORED BY Blacksmith 👩🚒
Run GitHub Actions 2x faster at half the cost.
CHALLENGE❓
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
const array = [1, 2, 3, 4];
const result = array.reduceRight((acc, val) => acc - val);
console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
👍9❤8🔥4
SPONSORED BY Blacksmith 👩🚒
Run GitHub Actions 2x faster at half the cost.
CHALLENGE❓
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
function test() {
console.log(arguments.length);
}
test(1, 2, 3);
test.call(null, 1, 2, 3);
Please open Telegram to view this post
VIEW IN TELEGRAM
❤6👍6🔥2
👍14❤6
SPONSORED BY Blacksmith 👩🚒
Run GitHub Actions 2x faster at half the cost.
🌲 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
Run GitHub Actions 2x faster at half the cost.
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
❤6🔥3👍2
SPONSORED BY Blacksmith 👩🚒
Run GitHub Actions 2x faster at half the cost.
CHALLENGE❓
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
const obj = { a: 1, b: 2 };
const descriptor = Object.getOwnPropertyDescriptor(obj, 'a');
descriptor.value = 3;
Object.defineProperty(obj, 'a', descriptor);
console.log(obj.a);
Please open Telegram to view this post
VIEW IN TELEGRAM
👍6❤4🔥3
SPONSORED BY Blacksmith 👩🚒
Run GitHub Actions 2x faster at half the cost.
The newer CSS viewport units (svh, lvh, dvh) are one of my favourite features in modern CSS 🔥
→ The "smallest viewport height" (svh) will always fit the smallest amount of space (all content will always be visible)
→ The "largest viewport height" (lvh) will always take up the largest amount of space (potentially hiding some content underneath UI)
→ The "dynamic viewport height" (dvh) will resize to fit the currently available space (adapting as the browser UI gets visible or hidden)
Mads Brodt
Run GitHub Actions 2x faster at half the cost.
The newer CSS viewport units (svh, lvh, dvh) are one of my favourite features in modern CSS 🔥
→ The "smallest viewport height" (svh) will always fit the smallest amount of space (all content will always be visible)
→ The "largest viewport height" (lvh) will always take up the largest amount of space (potentially hiding some content underneath UI)
→ The "dynamic viewport height" (dvh) will resize to fit the currently available space (adapting as the browser UI gets visible or hidden)
Mads Brodt
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥16❤7👍5
SPONSORED BY Blacksmith 👩🚒
Run GitHub Actions 2x faster at half the cost.
CHALLENGE❓
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
const array = [1, 2, 3];
const result = array.map(function(n) {
return this ? n : 0;
}, false);
console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
👍6❤4🔥3
❤10🤔6👍3🔥3🤩3
SPONSORED BY Blacksmith 👩🚒
Run GitHub Actions 2x faster at half the cost.
👀 Ky: Tiny, Elegant Fetch-Based HTTP Client for Browsers
Makes the Fetch API tidier to use as shown here. If you want to tighten up your
Sindre Sorhus
Run GitHub Actions 2x faster at half the cost.
Makes the Fetch API tidier to use as shown here. If you want to tighten up your
fetch calls, it's worth a look.Sindre Sorhus
Please open Telegram to view this post
VIEW IN TELEGRAM
👍7❤4🔥2
SPONSORED BY Blacksmith 👩🚒
Run GitHub Actions 2x faster at half the cost.
CHALLENGE❓
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
function* generator() {
yield* [1, 2];
yield* (function* () { yield 3; yield 4; })();
}
const gen = generator();
console.log([...gen]);
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥7👍4❤2
👍8🤔4🤣4❤3