Loop in ES6 - NR IT INSTITUTE