This is my two file in JavaScript and I have problems because they don\'t work very well:
This is the first file (write data in real time database in Firebase): I don\'t