121
reputation
4

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
1
question
~774
people reached
  • Member for 6 years, 1 month
  • 2 profile views
  • Last seen Jun 4 '16 at 12:06

Top tags (1)

Score 0
Posts 1
Posts % 100

Top posts (1) All Questions Answers | Votes Newest

Badges (4)

Gold

Silver

Bronze

4

Rarest