Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
109
reputation
1
3
13

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)
3
answers
11
questions
~29k
people reached
  • Member for 7 years, 2 months
  • 76 profile views
  • Last seen May 15 '18 at 15:36

Top tags (16)

Score 0
Posts 3
Posts % 21
Score 0
Posts 3
Score 0
Posts 2
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top posts (14) All Questions Answers | Votes Newest

View all questions and answers

Badges (17)

Gold

1

Rarest

Silver

3

Rarest

Bronze

13

Rarest