npm install -g babel
Create a new file
const sum = arr => arr.reduce((a, b) => a + b); console.log( 'sum: ', sum([1,2,3]) )
You can even run
babel-node without any arguments and use the REPL to execute JS on the fly. If you introduce it into a project, there are babel packages for Gulp and Grunt.