TGViewer
Channel Public Channel
JavaScript

JavaScript

@javascript

A resourceful newsletter featuring the latest and most important news, articles, books and updates in the world of #javascript πŸš€ Don't miss our Quizzes!

Let's chat: @nairihar
Subscribers
31K
Photos
1.2K
Videos
10
Links
899

Showing posts older than #1952 Β· Back to latest

Older Posts 20 shown
Post #1950 7.55K
  • πŸ”₯ 27
  • πŸ‘ 9
  • ❀ 5
  • πŸ€” 2
Post #1949 7.47K
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
Post #1948 7.63K
🌦 awesome-nest-boilerplate

This is an ever-evolving, very opinionated architecture and dev environment for new node projects using NestJS.

NarHakobyan
  • πŸ‘ 9
  • ❀ 3
  • πŸ”₯ 1
Post #1947 7.54K
  • πŸ‘ 31
  • 🀣 21
  • ❀ 2
  • πŸ€” 1
Post #1946 7.35K
CHALLENGE

function trickyFunction() {
var x = 10;
if (x > 5) {
let y = x * 2;
x = y;
}
return x;
}

console.log(trickyFunction());
  • πŸ‘ 11
  • ❀ 5
Post #1945 7.69K
🌦 awesome-nest-schematics

Awesome Nest Boilerplate architecture element generation based on Angular schematics 🎬

NarHakobyan
  • πŸ‘ 9
  • πŸ”₯ 5
  • ❀ 3
Post #1944 7.83K
  • πŸ‘ 34
  • 🀣 19
  • πŸ€” 11
  • πŸ”₯ 2
  • 🀩 1
Post #1943 7.47K
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
Post #1942 7.6K
  • 🀩 22
  • πŸ‘ 10
  • ❀ 7
Post #1941 7.68K
CHALLENGE


const obj = {
valueOf() {
return 42;
}
};

const result = obj + 8;
console.log(result);
  • πŸ‘ 11
  • ❀ 3
  • 🀣 3
Post #1940 8.25K
  • πŸ”₯ 20
  • πŸ‘ 10
  • ❀ 3
Post #1939 8.32K
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
Post #1938 9.27K
πŸ₯‚ Let's rock the 2025!
  • ❀ 44
  • πŸ”₯ 26
  • 🀣 6
  • 🀩 4
  • πŸ€” 3
  • πŸ‘ 1
Post #1937 10.8K
🀟 Node.js Weekly #560 - last report

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!
  • ❀ 13
  • πŸ”₯ 5
  • πŸ‘ 4
Post #1935 9.24K
πŸ™ You can support us via crypto

πŸ€‘ (TON) UQBUbmofBcohb5Ix5lYjTEz3IH8aVBg8go_KpgeTJTJz21d2

πŸ€‘ (TRC 20) TE9wDkNdnTtrzbk3tqWyTgt2zK3byUqH79

Or just buy us a coffee β˜•οΈ
  • πŸ”₯ 6
  • ❀ 2
  • πŸ‘ 2
  • πŸ€” 1
Post #1933 9.47K
  • πŸ”₯ 15
  • πŸ‘ 5
  • 🀣 4
  • ❀ 3
  • πŸ€” 1
Post #1932 8.52K
πŸ™We would like to hear your feedback!
  • ❀ 4
  • πŸ‘ 3
Older posts β†’
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook β†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 β†’