HCLTech interview question

Javascript Deep into basics ES6 updates