ES6 Basics

  • 1/25 Rest is a new way for functions to handle an arbitrary number of parameters. Can you guess what the mysterious "a" variable holds?

    function mystery(...params) {
      return params; 
    }
    let a = mystery(1,23,4);