Firebase Code Help

Can someone give me the code to record input of text in firebase? Pls?