The Stack Overflow podcast is back! Listen to an interview with our new CEO.
327
reputation
1
3
15

caub

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)
0
answers
6
questions
~18k
people reached

Top tags (13)

Score 0
Posts 3
Posts % 50
Score 0
Posts 2
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top posts (6) All Questions Answers | Votes Newest

Badges (19)

Gold

1

Rarest

Silver

3

Rarest

Bronze

15

Rarest