+ 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
2 ответов
+ 3
I can only recommend the docs
https://firebase.google.com/docs/database/web/read-and-write
+ 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