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
function* fibonacci() {
let [prev, curr] = [0, 1];
while (true) {
[prev, curr] = [curr, prev + curr];
yield curr;
}
}
const fib = fibonacci();
console.log(fib.next().value);
console.log(fib.next().value);
console.log(fib.next().value);
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4
👍9🔥4🤔2❤1
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣50👍4❤3🤩1
function deepFreeze(obj) {
Object.freeze(obj);
Object.getOwnPropertyNames(obj).forEach(prop => {
if (typeof obj[prop] === 'object' && !Object.isFrozen(obj[prop])) {
deepFreeze(obj[prop]);
}
});
return obj;
}
const data = { a: { b: { c: 1 } } };
const frozenData = deepFreeze(data);
frozenData.a.b.c = 2;
console.log(frozenData.a.b.c);
Please open Telegram to view this post
VIEW IN TELEGRAM
👍9❤4
🤔15❤6👍4🔥2🤩1
Node.js TSC member Matteo has put together a handy site that visualizes the publicly available Node.js download statistics, partly as a way to help guide you as to which versions and which architectures need the most support. Notably, Node 18 has only just begun to pass Node 16 in popularity..
MATTEO COLLINA
Please open Telegram to view this post
VIEW IN TELEGRAM
❤6🔥4👍1
const obj = {};
const sym1 = Symbol('a');
const sym2 = Symbol('b');
obj[sym1] = 1;
obj[sym2] = 2;
console.log(Object.keys(obj));
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2
What is the output?
Anonymous Quiz
33%
[Symbol('a'), Symbol('b')]
12%
['b', 'a']
40%
['a', 'b']
15%
[]
🤔15👍10❤4🤣4🔥3
Amazon Web Services does a pretty good job with its APIs and associated tooling, but sometimes they can be a little bit heavyweight. aws-lite provides a simpler and faster option. “You can think of it as a community-driven alternative to AWS’s JavaScript SDK.”
BEGIN
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7🔥4👍2
let arr = [1, 2, 3, 4, 5];
let slicedArray = arr.slice(1, 4);
let splicedArray = arr.splice(2, 2);
console.log(slicedArray.length + splicedArray.length);
Please open Telegram to view this post
VIEW IN TELEGRAM
❤6👍3
🤔28🔥7🤩7👍5🤣2❤1
We’ve covered most of these, but this is still a productive refresher in just six minutes, covering things like toSorted(), iOS Web Push, Next.js updates, Angular 17, and the rapid rise of Bun.
FIRESHIP ON YOUTUBE
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7🔥5🤩3👍2
console.log(1 + '2' + '2');
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5
🤣36👍21🤔16❤10
Please open Telegram to view this post
VIEW IN TELEGRAM
👍11❤7🤣3🔥2
let x = 10;
let y = 5;
x += y -= x *= y;
console.log(x);
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣22❤13👍4🔥4