🔥15👍5🤣4❤3🤔1
You can also provide free-text feedback about your opinion by simply submitting it here.
👍4
Or just buy us a coffee ☕️
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥6❤2👍2🤔1
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7👍6🔥2
A look back at Node's 2024
2024 has been a solid year for Node, with the release of Node.js v22 back in April (now in LTS) and v23 in October. Node also got a new mascot this year (above), Express 5.0 arrived, Node has dabbled with type stripping to better support TypeScript, and a native SQLite module has been under active development. Fingers crossed for an interesting 2025!
Please open Telegram to view this post
VIEW IN TELEGRAM
❤13🔥5👍4
Please open Telegram to view this post
VIEW IN TELEGRAM
❤44🔥26🤣6🤩4🤔3👍1
CHALLENGE
function combine(...arrays) {
return arrays.reduce((acc, arr) => [...acc, ...arr], []);
}
const result = combine([1, 2], [3, 4], [5, 6]);
console.log(result);
👍8🤩3
What is the output?
Anonymous Quiz
6%
[]
33%
[[1, 2], [3, 4], [5, 6]]
56%
[1, 2, 3, 4, 5, 6]
5%
[1, [2, 3], 4, [5, 6]]
🔥20👍10❤3
CHALLENGE
const obj = {
valueOf() {
return 42;
}
};
const result = obj + 8;
console.log(result);
👍11❤3🤣3
🤩22👍10❤7
CHALLENGE
function trickyFunction() {
var a = 10;
var b = a;
b = 15;
const obj1 = { x: 1 };
const obj2 = obj1;
obj2.x = 5;
console.log(a + ' ' + b + ' ' + obj1.x);
}
trickyFunction();
🤣10🤔9👍7
👍34🤣19🤔11🔥2🤩1
Awesome Nest Boilerplate architecture element generation based on Angular schematics 🎬
NarHakobyan
Please open Telegram to view this post
VIEW IN TELEGRAM
👍9🔥5❤3
CHALLENGE
function trickyFunction() {
var x = 10;
if (x > 5) {
let y = x * 2;
x = y;
}
return x;
}
console.log(trickyFunction());
👍11❤5
👍31🤣20❤2🤔1
This is an ever-evolving, very opinionated architecture and dev environment for new node projects using NestJS.
NarHakobyan
Please open Telegram to view this post
VIEW IN TELEGRAM
👍9❤3🔥1
CHALLENGE
function trickyFunction() {
var obj = { a: 1 };
var anotherObj = obj;
obj.a = 2;
obj = { a: 3 };
anotherObj.a = 4;
return obj.a + anotherObj.a;
}
console.log(trickyFunction());
❤12🤔6👍2
🔥27👍9❤5🤔2
Please open Telegram to view this post
VIEW IN TELEGRAM
👍8🔥3❤1
CHALLENGE
async function fetchData() {
let data = 'initial';
const promise = new Promise((resolve) => {
setTimeout(() => {
resolve('fetched');
}, 1000);
});
promise.then((result) => {
data = result;
});
return data;
}
fetchData().then(console.log);
👍13❤2