Complete the code to create a reference to the storage location.
const storageRef = firebase.storage().ref().[1]('images/photo.jpg');
The child method creates a reference to a specific file path in Firebase Storage.
Complete the code to upload a file to Firebase Storage.
storageRef.[1](file).then(() => console.log('Upload complete'));
The put method uploads the file to the storage reference.
Fix the error in the code to get the download URL after upload.
storageRef.put(file).then(() => storageRef.[1]()).then(url => console.log(url));After uploading, use getDownloadURL() to get the file's URL.
Fill both blanks to delete a file and then log a success message.
storageRef.[1]().then(() => console.log([2]));
Use delete() to remove the file, then log a success message.
Fill all three blanks to upload a file, get its URL, and log it.
storageRef.[1](file).then(() => storageRef.[2]()).then([3] => console.log([3]));
First, put uploads the file. Then, getDownloadURL gets the URL. Finally, the URL is logged using the variable url.
