JSFiddle - React, Tailwind, and code Playground

by Henry

JavaScript

function sum(x, y, z, a) {
  return x + y + z + a;
}

const numbers = [1, 2, 3];

console.log(sum(...numbers));
// expected output: 6