title: How to pass a variable with a value in firebase query syntax
body: <p>I was trying to get a book value using JavaScript and storing in a variable named "bookName" now it has a decimal value 124562. This decimal value indicates some book details.</p>
  
  <p>Now the problem is in firebase I made a data modeling a node named as "books" and in there there are different details like:</p>
  
  <p>Book name : tcp/ip </p>
  
  <p>Book number : 124562</p>
  
  <p>Book pages: 300 </p>
  
  <p>The problem is how to get the query in firebase that it will compare different books under books node and get me the details of the book number 124562? </p>
  
  <p>Your help in the form of video or event syntax will be helpful.</p>
  
  <p>Also I checked , the 
  Syntax</p>
  
  <pre><code>UserRef.orderByChild('books').equalTo(value).on('child-added',function(snap){
  console.log(snap.val());
  )};
  </code></pre>