335
reputation
3
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 5 years, 6 months
  • 10 profile views
  • Last seen Oct 28 '19 at 5:09

Top tags (3)

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

Top posts (2)

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

Badges (11)

Gold

Silver

3

Rarest

Bronze

8

Rarest