+ 3

How to fetch all data from firebase

I connected firebase database with my code and tried to fetch data. But it only fetches the last data. https://code.sololearn.com/W34nA0AkFRUX/?ref=app Here, it only fetches the last name and email id. But I want to fetch all names and email ids and write these in innerHTML like Name 1 Email 1 Name2 Email 2 Name3 Email 3 How can I do that ?😢

16th Sep 2020, 12:19 PM
Prasant
Prasant - avatar
2 Answers
+ 2
🎃#H P 22™🎃 How ? I have 18+ emails and names in my db. But it only shows the last one in innerHTML. (Although all are shown in console)
16th Sep 2020, 1:27 PM
Prasant
Prasant - avatar