send data to server on call back firebase code example Example: write firebase data using variables javascript foo = {}; foo[variable] = 'more stuff'; fb.set(foo);