title: How to display image from firebase storage using javascript?
body: <p>I tried to upload an image to firebase storage and retrieve the image from firebase storage. But, the "retrieve" case is not working:</p>
  
  <pre><code>// image upload
  var storageRef = firebase.storage().ref('profilePicturesOfAbmin/original/'+file.name);
  storageRef.put(file);
  function error(err) {
      console.log("error",err);
  } 
  
  // retrieve image from firebase storage
  var storageRef = firebase.storage().ref();
  var spaceRef = storageRef.child('profilePicturesOfAbmin/original/'+file.name);
  storageRef.child('profilePicturesOfAbmin/original/'+file.name).getDownloadURL().then(function(url) {
      console.log("bsbdsbsdbd");
      var test = url;
      alert("hfdghjghj",url);
  }).catch(function(error) { });
  </code></pre>