let obj = {
a: 'A',
b: 'BB',
c: 'CCC'
};
for (let name in obj) {
console.log(`${name}: '${obj[name]}');
}
// a: 'A', b: 'BB', c: 'CCC'
let coll = ['A', 'BB', 'CCC'];
for (let item of coll) {
console.log(item);
}
// 'A', 'BB', 'CCC'
let arr = ['A', 'BB', 'CCC']
arr.forEach(i => console.log(i));
// 'A', 'BB', 'CCC'