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 #1872 Β· Back to latest

Older Posts 20 shown
Post #1871 7.21K
CHALLENGE ❓


const arr = [1, 2];
arr.length = 0;
console.log(arr[0]);
  • ❀ 1
  • πŸ‘ 1
Post #1869 7.32K
πŸ˜†
  • 🀣 48
  • ❀ 4
  • πŸ‘ 3
  • πŸ”₯ 3
Post #1868 6.86K
  • πŸ‘ 18
  • ❀ 4
  • 🀩 4
  • πŸ”₯ 1
Post #1867 6.92K
CHALLENGE ❓


const obj = {};
Object.defineProperty(obj, "prop", {
value: 42,
writable: false
});
obj.prop = 100;
console.log(obj.prop);
  • ❀ 1
Post #1866 7.12K
πŸ‘€ Viselect: Let Users Visually Select DOM Elements

If you’ve got a variety of elements and you want users to be able to select them in groups, individually, or even in multiple groups, this lets you offer that functionality easily. Can be used in a vanilla fashion or with integrations for P/React or Vue.js.

Simon Reinisch
  • πŸ‘ 10
  • πŸ”₯ 3
  • ❀ 2
Post #1865 6.95K
  • πŸ‘ 20
  • 🀣 17
  • πŸ€” 9
  • ❀ 5
  • πŸ”₯ 3
  • 🀩 3
Post #1864 7.15K
CHALLENGE ❓


const x = (() => {
try {
return 10;
} finally {
return 20;
}
})();
console.log(x);
  • πŸ‘ 3
  • ❀ 1
Post #1863 7.37K
✌️ Importing a Frontend JavaScript Library Without a Build System

Many developers prefer to eschew complex, modern build processes and use JavaScript in a more old-school way. You can definitely get by without a build system, and Julia explores some ways to import libraries in such a setup.

Julia Evans
  • πŸ‘ 7
  • πŸ”₯ 4
  • ❀ 3
Post #1862 7.27K
  • πŸ‘ 14
  • πŸ”₯ 7
  • ❀ 6
  • πŸ€” 4
Post #1861 7.37K
CHALLENGE ❓


const arr = [1, 2, 3];
arr[-1] = 10;
console.log(arr.length, arr[-1]);
  • ❀ 9
  • πŸ‘ 4
Post #1860 8.2K
πŸ˜†
  • 🀣 84
  • πŸ‘ 6
  • 🀩 6
  • πŸ”₯ 2
  • ❀ 1
Post #1858 8.47K
⛽️ npmpackage.info: Detailed Package Info on a Single Page

Give this online tool the name of an npm package and you get a quick β€˜dashboard’ style view of the project’s main statistics, covering areas like quality scores, commits, open issues, releases, bundle size, and more.

Shrinath Nayak
  • πŸ‘ 4
  • πŸ”₯ 3
  • ❀ 1
Post #1856 8.15K
  • πŸ‘ 23
  • πŸ€” 21
  • ❀ 9
  • 🀣 7
  • 🀩 6
Post #1855 8.96K
CHALLENGE ❓

const obj = {
valueOf: () => 42,
toString: () => "Hello"
};
console.log(`${obj}`, obj + 10);
  • ❀ 10
  • πŸ‘ 2
Post #1853 8.61K
🀟 AWS Lambda Turns Ten: Looking Back and Looking Ahead

AWS Lambda, Amazon’s cloud function service, essentially launched the term β€˜serverless’ and had a big impact on the use of Node.js in the cloud with Node v0.10 being the first and only runtime supported (till Java was added a year later).

Jeff Barr (AWS)
  • πŸ‘ 9
  • ❀ 2
  • πŸ”₯ 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 β†’