Below is pseudo-code for the way you write a listener for a Realtime Database event.
function callbackA(snapshot) { c