When the console.log(contas.sumario())
function of the CicloFinanceiro
class is called, the two objects appear as expected and then undefined appears and I do not understand why.
class Lancamento {
constructor(nome = 'Genérico', valor = 0){
this.nome = nome
this.valor = valor
}
}