Posts by Bruno Vinicius • 9 points
3 posts
-
-1
votes2
answers38
viewsA: Error in calling an API
I believe I understand your question. The error you are getting is because you are trying to access the function forEach() that is not present in the object users, because it is not an array. The…
-
0
votes1
answer52
viewsA: I cannot access array item inside object
I used the return of the method pessoas.find(e=>e.nome===nome) and I was able to get the result I wanted. ... buscaPessoaPorNome(nome) { return this.pessoas.find(e=>e.nome===nome); } ... const…
-
1
votes1
answer52
viewsQ: I cannot access array item inside object
I am learning Javascript object orientation using Nodejs, and in a learning code I have created two classes: Person and Agenda, in which the Agenda has an array of the Person class, and in a search…