Stats
178
reputation
0
reached
0
answers
0
questions
About
var digest = (a,x) => a+x.replace(/\w/g, i=>Math.random()<.2?i:'');
['peach', 'tomato', 'fig'].reduce(digest)
// safe:) addition function
var safeAdd = (a,b,i=100) => Number(eval(`${`\`\${`.repeat(i)}${a}+${b}${`}\``.repeat(i)}`));
safeAdd(1,2) // 3
// other one:
var coolAdd = async (a,b) => await Promise.resolve(a)+await new Promise(r=>setTimeout(r(b)));
coolAdd(2,3).then(console.log)
var pi=Promise.reject(1), u=console.log; pi.catch(u)
Badges
This user doesn’t have any gold badges yet.
This user doesn’t have any silver badges yet.
2
-
SupporterFeb 15, 2015
-
AutobiographerOct 31, 2015
Posts
This user hasn’t posted yet.