Run GitHub Actions 2x faster at half the cost.
CHALLENGE ❓
const obj = {
a: 1,
b() {
return new Promise(resolve => {
setTimeout(() => {
resolve(this.a);
}, 100);
});
}
};
obj.b().then(console.log);
obj.a = 2;
JA JavaScript @javascript · 31K subscribers
const obj = {
a: 1,
b() {
return new Promise(resolve => {
setTimeout(() => {
resolve(this.a);
}, 100);
});
}
};
obj.b().then(console.log);
obj.a = 2;