JSFiddle - React, Tailwind, and code Playground

by dmitri_pavlutin

JavaScript

function sum(a, b) {
  return a + b;
}

console.log(sum(5, 6));         // => 11
console.log([3, 7].reduce(sum)) // => 10