Chrome Extension

Javascript ES6 Rest Parameters

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

const numbers = [1, 2, 3];

console.log(sum(...numbers));

Do you know, you can create and search your own code snippets on Devsheet. Store your code on cloud using devsheet and search using its chrome extension. Is it look cool?

Output
6

Search Index Data (The code snippet can also be found with below search text)

Javascript ES6 Rest Parameters
Was this helpful?
0 Comments
Never leave your website again in search of code snippets by installing our chrome extension.