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

Older Posts 20 shown
Post #1830 6.89K
  • πŸ€” 32
  • 🀣 31
  • ❀ 3
  • πŸ‘ 3
  • πŸ”₯ 3
Post #1829 6.95K
CHALLENGE ❓


const sym1 = Symbol("id");
const sym2 = Symbol("id");
console.log(sym1 === sym2);
  • πŸ‘ 3
Post #1828 7.18K
⛽️ 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
  • ❀ 3
  • πŸ‘ 2
  • πŸ”₯ 2
  • 🀩 1
Post #1827 6.75K
  • πŸ‘ 18
  • ❀ 4
  • πŸ”₯ 4
Post #1826 6.58K
CHALLENGE ❓


let name = "Alice";
(function() {
let name = "Bob";
console.log(name);
})();
console.log(name);
  • πŸ‘ 2
  • πŸ”₯ 1
Post #1825 6.92K
✌️ JavaScript's ??= Operator: Default Values Made Simple

The ??= nullish coalescing assignment operator snuck into JavaScript a few years ago via ECMAScript 2021 and has been broadly supported almost everywhere for ages. Trevor shows off how it can tighten up your assignments here.

Trevor I. Lasn
  • ❀ 9
  • πŸ”₯ 4
  • πŸ‘ 3
Post #1824 6.56K
  • 🀣 28
  • πŸ€” 15
  • πŸ‘ 8
  • ❀ 1
Post #1823 6.65K
CHALLENGE ❓


console.log(typeof typeof 42);
  • πŸ‘ 5
  • πŸ”₯ 3
  • ❀ 2
Post #1821 7.33K
  • πŸ‘ 15
  • ❀ 10
  • πŸ”₯ 9
  • πŸ€” 1
Post #1820 6.82K
CHALLENGE

const arr = [1, 2, 3];
const copy = [...arr];
copy.push(4);

console.log(arr);
console.log(copy);
  • πŸ‘ 4
Post #1819 7.13K
🀟 Why Code Security Matters - Even in Hardened Environments

A nicely diagrammed deep dive (and it really is deep) into a technique that allows malicious parties to turn a file write vulnerability in a Node app into a remote code execution exploit even when the file system is mounted read-only.

Stefan Schiller (Sonar)
  • πŸ”₯ 4
  • ❀ 2
  • πŸ‘ 2
  • πŸ€” 1
Post #1818 6.38K
  • 🀩 9
  • πŸ‘ 6
  • ❀ 3
Post #1817 6.64K
CHALLENGE

async function test() {
return (await Promise.resolve(0)) || 10;
}

test().then(console.log);
  • πŸ‘ 11
Post #1816 7.21K
🫑 Faker 9.1: Generate Fake, Realistic Data on Demand

Names, bios, addresses, zip codes, dates, monetary amounts, transactions, and a lot more besides. I really like the guided DevTools console based demo you can try – an idea other projects should consider. GitHub repo.

Faker.js Team
  • πŸ‘ 7
  • πŸ”₯ 4
  • ❀ 2
Post #1815 6.64K
  • πŸ‘ 18
  • ❀ 4
  • πŸ”₯ 3
Post #1814 6.61K
CHALLENGE

const obj = { value: 10 };
const result = (obj.value += 5) && obj.value;
console.log(result);
  • πŸ‘ 2
Post #1812 6.49K
  • πŸ€” 10
  • πŸ‘ 7
  • πŸ”₯ 6
  • ❀ 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 β†’