let nomes = ['Marlene', 'Flávio', 'Luiz', 'Eneida', 9];
for(let i = 0; i < nomes.length; i++){
console.log(nomes[i]);
}
for (let nome of nomes) {
console.log(nome)
}
let user = {
nome: 'Flávio',
idade: 28,
departamento: 'Finanças'
}
for (let key in user){
console.log(key);
console.log(user[key]);
console.log(`${key} : ${user[key]}`);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: