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
901

Showing posts older than #1449 Β· Back to latest

Older Posts 20 shown
Post #1448 6.95K
⭐️ Let's Make This the Most Starred README! ⭐️


Welcome to our fun experiment! Help us create a galaxy of stars on this README.

How to Participate:

⭐️ Star this repository!
πŸŽ‰ Share it with friends.

Why Star This Repo?

- Be part of a fun community experiment.
- See how many stars we can collect together.
- Enjoy watching this project grow!

Let's turn this README into the most starred repository ever!

Star Now!
  • 🀩 13
  • πŸ‘ 5
  • 🀣 5
  • πŸ€” 3
  • ❀ 2
  • πŸ”₯ 2
Post #1447 5.89K
  • πŸ‘ 13
  • ❀ 3
Post #1446 6.33K
CHALLENGE

const array = [1, 2, 3, 4, 5];
const result = array.splice(2, 2, 6, 7);

console.log(array, result);
  • ❀ 3
  • πŸ‘ 2
  • πŸ”₯ 2
  • 🀩 2
Post #1444 6.65K
  • πŸ”₯ 17
  • 🀣 12
  • ❀ 6
  • πŸ‘ 5
  • πŸ€” 4
Post #1443 6.48K
CHALLENGE

class Parent {
static greet() {
return 'Hello from Parent';
}
}

class Child extends Parent {
static greet() {
return super.greet() + ' and Child';
}
}

const childInstance = new Child();
console.log(childInstance.greet);
  • πŸ‘ 3
  • πŸ€” 2
  • ❀ 1
Post #1442 6.92K
✌️ A Look at JavaScript's New Set Methods

Finding the intersection, union, and difference between sets, among other set-related tasks, is now a piece of cake. Available in Node 22+, Chrome/Edge 122+, Firefox 127+, Safari 17+, and now considered a 'baseline' feature.

Brian Smith (MDN)
  • πŸ‘ 11
  • πŸ”₯ 3
  • ❀ 2
  • 🀩 1
Post #1441 6.46K
  • ❀ 11
  • πŸ€” 7
  • πŸ”₯ 3
  • πŸ‘ 1
Post #1440 6.51K
CHALLENGE
const obj = {};
let value = 0;

Object.defineProperty(obj, 'prop', {
get() {
return value;
},
set(newValue) {
value = newValue + 1;
},
configurable: true,
enumerable: true
});

obj.prop = 10;
console.log(obj.prop);
  • πŸ‘ 4
  • 🀩 3
  • ❀ 2
Post #1438 6.67K
  • ❀ 10
  • πŸ‘ 9
  • πŸ€” 7
Post #1437 6.51K
CHALLENGE

const arr = [1, 2, 3, 4, 5];
const [first, , third, ...rest] = arr;

console.log(first, third, rest);
  • πŸ”₯ 8
  • ❀ 5
  • πŸ‘ 1
Post #1435 6.85K
  • ❀ 23
  • πŸ‘ 9
  • 🀩 3
Post #1434 6.61K
CHALLENGE

const array = [1, 2, 3, 4, 5];
const result = array.filter(n => n % 2).map(n => n * 2);

console.log(result);
  • ❀ 13
  • πŸ”₯ 3
  • 🀩 1
Post #1433 7.37K
πŸ˜†
  • 🀣 88
  • πŸ€” 6
  • πŸ‘ 5
  • ❀ 3
  • πŸ”₯ 2
  • 🀩 1
Post #1432 6.89K
  • ❀ 4
  • πŸ‘ 4
  • 🀩 1
  • 🀣 1
Post #1431 6.62K
CHALLENGE

const obj1 = { a: 1 };
const obj2 = Object.create(obj1);
obj2.b = 2;

console.log(obj2.a, obj2.b);
console.log(obj2.hasOwnProperty('a'));
console.log(Object.getPrototypeOf(obj2) === obj1);
  • πŸ‘ 9
  • ❀ 2
Post #1430 6.98K
✌️ The Results of the State of JavaScript 2023 Survey

It feels odd including something about 2023 in June 2024, but the results of the major annual JavaScript developer survey are now out. It’s interesting to see what features JS devs do and don’t use, changes in library popularity over time, what build tools people are using, the divide between JavaScript and TypeScript usage, and much more besides.

Devographics
  • πŸ‘ 7
  • ❀ 2
  • πŸ”₯ 2
Post #1429 6.16K
  • πŸ‘ 4
  • πŸ”₯ 2
  • ❀ 1
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 β†’