Plz guys ,I don't know how to write a code for saving,reading data in firebase ,correct me in this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Plz guys ,I don't know how to write a code for saving,reading data in firebase ,correct me in this code

Web Storage using Firebase https://code.sololearn.com/W7pJinS3MOBz/?ref=app

17th Aug 2022, 3:37 PM
emma
emma - avatar
2 Answers
18th Aug 2022, 2:23 AM
Chris Coder
Chris Coder - avatar
+ 2
Fixed successfully. The output [object Object] means that JSON is parsed when reaching output so I have added the parameter name to snap.val(), staying like this snap.val().name to give me the name that I have added, but if you want to get the json response, you need to JSON.stringify(snap.val()) Here it is the code https://code.sololearn.com/Wf0Sc46qtdyH/?ref=app
18th Aug 2022, 9:49 AM
🔥 Anonymous 🔥
🔥 Anonymous 🔥 - avatar