Capgemini interview question

JavaScript que. and related to es6