JSFiddle - React, Tailwind, and code Playground
by Brynner
JavaScript
var alunos = [ { id: 1, nome: "João"}, { id: 2, nome: "Beltrano"}, { id: 3, nome: "Ciclano"} ];
var alunosLista = [];
alunos.forEach(function(aluno) {
alunosLista.push(' '+aluno.id+' '+aluno.nome);
});
document.body.innerHTML = alunosLista.toString();