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
900

Showing posts older than #1751 Β· Back to latest

Older Posts 20 shown
Post #1750 6.04K
  • πŸ€” 20
  • 🀣 4
  • πŸ‘ 1
Post #1749 5.74K
CHALLENGE ❓

async function first() {
console.log('First Start');
await second();
console.log('First End');
}

async function second() {
console.log('Second Start');
}

console.log('Script Start');
first();
setTimeout(() => console.log('Timeout'), 0);
console.log('Script End');
  • ❀ 3
  • πŸ‘ 1
Post #1748 6.16K
✌️ TC39 Advances 10+ ECMAScript Proposals

The architects behind the development of the ECMAScript / JavaScript spec got together again this week (you can see them in this tweet) and they had a packed agenda. Import attributes, Iterator helpers, Promise.try and Regexp modifiers all made it to stage 4, and more besides.

Sarah Gooding (Socket)
  • πŸ‘ 3
  • ❀ 2
  • πŸ”₯ 2
Post #1747 5.78K
  • πŸ‘ 11
  • πŸ”₯ 6
  • πŸ€” 4
  • ❀ 2
  • 🀣 1
Post #1746 5.77K
CHALLENGE ❓

setTimeout(() => console.log('Timeout 1'), 100);

setTimeout(() => {
console.log('Timeout 2');
Promise.resolve().then(() => console.log('Promise in Timeout 2'));
}, 50);

Promise.resolve().then(() => console.log('Promise 1'));

setTimeout(() => console.log('Timeout 3'), 150);

console.log('Sync');
  • πŸ‘ 1
Post #1745 6.44K
  • πŸ‘ 7
  • πŸ”₯ 4
  • ❀ 3
  • πŸ€” 2
Post #1744 5.88K
CHALLENGE ❓

setTimeout(() => {
console.log('Timeout');
Promise.resolve().then(() => console.log('Promise after Timeout'));
}, 0);

Promise.resolve().then(() => console.log('Promise'));

console.log('End of script');
  • ❀ 2
  • πŸ‘ 2
Post #1742 6.93K
  • πŸ”₯ 7
  • πŸ‘ 4
  • ❀ 2
Post #1741 6.09K
CHALLENGE ❓

async function asyncFunc() {
console.log('Async Start');
await new Promise(resolve => setTimeout(resolve, 100));
console.log('Async End');
}

console.log('Script Start');
asyncFunc();
setTimeout(() => console.log('Timeout 1'), 50);
setTimeout(() => console.log('Timeout 2'), 150);
console.log('Script End');
  • ❀ 4
  • πŸ‘ 1
Post #1739 6.87K
  • πŸ‘ 18
  • 🀣 8
  • ❀ 6
  • πŸ”₯ 1
Post #1738 6.11K
CHALLENGE ❓

setTimeout(() => {
console.log('setTimeout 1');
Promise.resolve().then(() => console.log('Promise 1'));
}, 0);

Promise.resolve().then(() => {
console.log('Promise 2');
setTimeout(() => console.log('setTimeout 2'), 0);
});

console.log('Sync');
  • πŸ‘ 13
Post #1737 7.45K
πŸ˜‚
  • 🀣 134
  • πŸ”₯ 5
  • πŸ€” 2
  • 🀩 1
Post #1736 6.78K
  • ❀ 10
  • πŸ‘ 9
  • πŸ”₯ 1
  • 🀣 1
Post #1735 6.38K
CHALLENGE ❓

console.log('A');
setTimeout(() => console.log('B'), 0);
Promise.resolve().then(() => console.log('C'));
console.log('D');
  • ❀ 5
  • πŸ‘ 2
Post #1733 6.89K
  • ❀ 14
  • 🀣 6
  • πŸ”₯ 4
  • πŸ‘ 2
Post #1732 6.52K
CHALLENGE ❓

console.log(1);
setTimeout(() => console.log(2), 0);
Promise.resolve()
.then(() => {
console.log(3);
return Promise.resolve(4);
})
.then(console.log);
console.log(5);
  • πŸ€” 9
  • ❀ 6
  • πŸ‘ 2
Post #1731 6.68K
πŸ˜‰Bundling: The Past, Present and Future

A history lesson on bundlers, why they’re used, the problems they solve, the current ecosystem, and a look at the potential future for these tools.

Devon Govett
  • πŸ‘ 4
  • ❀ 3
  • πŸ”₯ 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 β†’