Not content to have merely created Vue.js and Vite, JavaScript powerhouse Evan You has unveiled his latest adventure: a $4.6m funded company building an open-source unified development toolchain for the JavaScript ecosystem. With his track record, this is as good an attempt as it gets.
Evan You
Please open Telegram to view this post
VIEW IN TELEGRAM
π13π€£3β€2π₯1
CHALLENGE β
async function fetchData() {
console.log('Fetching...');
await new Promise((resolve) => {
setTimeout(() => {
console.log('Data fetched');
resolve();
}, 100);
});
console.log('Process completed');
}
fetchData();
console.log('End of script');
Please open Telegram to view this post
VIEW IN TELEGRAM
β€4
What is the output?
Anonymous Quiz
15%
Data fetched, Fetching..., End of script, Process completed
41%
Fetching..., End of script, Process completed, Data fetched
20%
Fetching..., Data fetched, End of script, Process completed
23%
Fetching..., End of script, Data fetched, Process completed
π11π₯4β€3
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
Please open Telegram to view this post
VIEW IN TELEGRAM
π4β€3π₯2π€1
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);
Please open Telegram to view this post
VIEW IN TELEGRAM
π€9β€6π2
What is the output?
Anonymous Quiz
15%
1, 5, 3, 2, 4
46%
1, 5, 3, 4, 2
31%
1, 5, 2 ,3, 4
9%
1, 5, 4, 3, 2
β€13π€£6π₯4π2
Please open Telegram to view this post
VIEW IN TELEGRAM
π5π₯3π€£3β€1
CHALLENGE β
console.log('A');
setTimeout(() => console.log('B'), 0);
Promise.resolve().then(() => console.log('C'));
console.log('D');
Please open Telegram to view this post
VIEW IN TELEGRAM
β€5π2
β€10π9π₯1π€£1
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£132π₯5π€2π€©1
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');
Please open Telegram to view this post
VIEW IN TELEGRAM
π13
Please open Telegram to view this post
VIEW IN TELEGRAM
π5β€2π₯2
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');
Please open Telegram to view this post
VIEW IN TELEGRAM
β€4π1
What is the output?
Anonymous Quiz
21%
Script Start, Async Start, Timeout 1, Script End, Async End, Timeout 2
47%
Script Start, Async Start, Script End, Timeout 1, Async End, Timeout 2
23%
Script Start, Async Start, Script End, Timeout 1, Timeout 2, Async End
10%
Script Start, Async Start, Timeout 1, Timeout 2, Script End, Async End
π₯7π4β€2
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯4π2β€1
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');
Please open Telegram to view this post
VIEW IN TELEGRAM
β€2π2
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');
Please open Telegram to view this post
VIEW IN TELEGRAM
π1
What is the output?
Anonymous Quiz
18%
Sync, Promise 1, Timeout 2, Timeout 1, Timeout 3, Promise in Timeout 2
26%
Sync, Timeout 2, Promise 1, Timeout 1, Promise in Timeout 2, Timeout 3
47%
Sync, Promise 1, Timeout 2, Promise in Timeout 2, Timeout 1, Timeout 3
9%
Sync, Promise 1, Timeout 1, Timeout 2, Promise in Timeout 2, Timeout 3
π11π₯6π€4β€2π€£1
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)
Please open Telegram to view this post
VIEW IN TELEGRAM
π3β€2π₯2