JavaScript Challenges

Joined July 2018
1 Photos and videos
Do you remember when you joined Twitter? I do! #MyTwitterAnniversary
JavaScript Golf retweeted
29 May 2020
Am I the only one that didn't know a return is ignored within a catch when using finally? a() === 2; function a() { try { throw 0; } catch { return 1; } finally { return 2; } }
4
3
20
JavaScript Golf retweeted
Quiz of the day... a 🧵 #promises
14
36
148
What would you _expect_ the output to be? const p = {m: 'a'}; const c = {m: 'b'}; Object.setPrototypeOf(c, p); console.log(c.m); delete c.m; console.log(c.m); delete c.m; console.log(c.m);
36% b, a, undefined
27% b, undefined, undefined
32% b, a, a
5% TypeError
22 votes • Final results
1
Construct an object for which the following is true: ``` const x = ( typeof obj.t === 'number' && obj.t > 10 && obj.t === 'fish'); x === true; ```