220
reputation
2
8

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
2
questions
~5k
people reached
  • Member for 4 years, 8 months
  • 9 profile views
  • Last seen Aug 21 at 15:16

Top tags (3)

Score 0
Posts 2
Score 0
Posts 2
Score 0
Posts 2

Top posts (2) All Questions Answers | Votes Newest

15 2048 (game) solver Feb 13 '15
8 2048 (game) solver 2.0 Feb 21 '15

Badges (10)

Gold

Silver

2

Rarest

Bronze

8

Rarest