title: Read/Write data in the child of a child Firebase HTML
body: <p>Right now, I am able to write to my database like this:</p>
  
  <pre><code>var firebaseRef = firebase.database().ref();
  firebaseRef.child(codeText).set(messageText);
  </code></pre>
  
  <p>and I can read data like this:</p>
  
  <pre><code>var firebaseReadRef = firebase.database().ref().child(child);
  firebaseReadRef.on('value', function(datasnapshot){
  var data = datasnapshot.val();
  }
  </code></pre>
  
  <p>The problem is I can only store data like this <a href="https://i.imgur.com/hWfvUNE.png" rel="nofollow noreferrer">http://i.imgur.com/hWfvUNE.png</a> and I want to know how to store data like this <a href="https://i.imgur.com/Yui2wxp.png" rel="nofollow noreferrer">http://i.imgur.com/Yui2wxp.png</a></p>