How can I observe a child's value in JavaScript. In Swift you simply put:
ref.child("user").observe(.value) { (snapshot) in let userId = snapshot.key }
What is the command for this in JavaScript?