π€24π15π€£15β€12π₯6
Another Milestone Celebration π
We just hit 6,000 members!π
A special shoutout to my team members, Varik and SipanβI can't thank you enough for consistently dedicating your time and effort to our project.
Your commitment doesn't go unnoticed, and I speak for all of us when I say how much we value and appreciate it.
Cheers to a fantastic team!π
Nairi
We just hit 6,000 members!
A special shoutout to my team members, Varik and SipanβI can't thank you enough for consistently dedicating your time and effort to our project.
Your commitment doesn't go unnoticed, and I speak for all of us when I say how much we value and appreciate it.
Cheers to a fantastic team!
Nairi
Please open Telegram to view this post
VIEW IN TELEGRAM
π18β€10π₯7π€£2
function multiply(a, b) {
if (b === 0) {
return 0;
} else if (b > 0) {
return a + multiply(a, b - 1);
} else {
return -multiply(a, -b);
}
}
console.log(multiply(7, 5));
Please open Telegram to view this post
VIEW IN TELEGRAM
π6β€3π€2
π€18β€11π6π€£6π₯3
π Prettier's CLI: A Performance Deep Dive
Weβve recently written about the bounty the Prettier project put up (and how Biome won it) but Prettier has also been working on itself by hiring the author of this post to find and implement performance improvements, all while sticking with JavaScript.
FABIO SPAMPINATO
Weβve recently written about the bounty the Prettier project put up (and how Biome won it) but Prettier has also been working on itself by hiring the author of this post to find and implement performance improvements, all while sticking with JavaScript.
FABIO SPAMPINATO
π4β€3π₯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
β€5
π13β€4π₯2π€£2
A look at JavaScriptβs earliest history and its prototypal nature.
JUAN DIEGO RODRΓGUEZ
Please open Telegram to view this post
VIEW IN TELEGRAM
π3β€2π₯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
β€10π2
π11π₯3β€2
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£50π5π€©5β€4 1
const matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
];
let columnSums = [];
for (let i = 0; i < matrix[0].length; i++) {
let sum = 0;
for (let j = 0; j < matrix.length; j++) {
sum += matrix[j][i];
}
columnSums.push(sum);
}
console.log(columnSums);
Please open Telegram to view this post
VIEW IN TELEGRAM
π8β€6π€3π€£2
π20π€£9β€4π₯2
Building things is a great way to learn, even if you donβt end up using what you built. Even better is when someone whoβs already built something successful introduces you to the process. Nolan doesnβt go super deep but far enough to whet your appetite and for you to learn a few things by taking it further.
NOLAN LAWSON
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯8π3β€2
const matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
];
let flattenedMatrix = [];
for (let i = 0; i < matrix.length; i++) {
for (let j = 0; j < matrix[i].length; j++) {
flattenedMatrix.push(matrix[i][j]);
}
}
console.log(flattenedMatrix);
Please open Telegram to view this post
VIEW IN TELEGRAM
β€7π3
What is the output?
Anonymous Quiz
30%
[[1], [2], [3], [4], [5], [6], [7], [8], [9]]
19%
[1, 4, 7, 2, 5, 8, 3, 6, 9]
20%
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
31%
[1, 2, 3, 4, 5, 6, 7, 8, 9]
π₯14β€7π3
An online tool that checks a bunch of different package registries (npm, GitHub, GitLab, PyPI, Maven, RubyGems, Go packages, Rust crate, etc.) to see if the name is used by another project.
TODD COOKE
Please open Telegram to view this post
VIEW IN TELEGRAM
π12β€3π₯1
const data = [1, 2, 3, 4, 5];
const result = data.flatMap(num => [num * 2, num * 3]);
console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
β€4π1
What is the output?
Anonymous Quiz
19%
[2, 4, 6, 8, 10]
71%
[2, 3, 4, 6, 6, 9, 8, 12, 10, 15]
5%
[2, 3, 4, 6, 6, 9]
5%
[1, 2, 3, 4, 5]
π₯15β€6π6
A deep dive into how the V8 JavaScript engine (as used in Node) is getting faster thanks to work on its Maglev JIT compiler which sits in between the existing Sparkplug and TurboFan compilers (which offer distinct compilation vs execution speed tradeoffs).
THE V8 TEAM
Please open Telegram to view this post
VIEW IN TELEGRAM
π8β€5π₯1