The current challenges do not teach any of the new ES6 features. What will work in your browser depends on what your browser supports. Putting /*jshint esversion: 6 */
at the top of the editor will stop it from flagging syntax errors for ES6 features.