Complete the code to initialize Firebase Storage in your app.
const storage = [1]();Use getStorage() to get the Firebase Storage instance for file storage operations.
Complete the code to upload a file to Firebase Storage.
uploadBytes([1], file).then(() => console.log('Uploaded'));
The uploadBytes function uploads a file to the given storage reference, which is storageRef.
Fix the error in the code to download a file URL from Firebase Storage.
getDownloadURL([1]).then(url => console.log(url));The getDownloadURL function requires a storage reference, so storageRef is correct.
Fill both blanks to create a reference to a file named 'image.png' in Firebase Storage.
const [1] = ref([2], 'image.png');
Use ref(storage, 'image.png') to create a reference to the file. Assign it to storageRef.
Fill all three blanks to delete a file named 'oldfile.txt' from Firebase Storage.
const [1] = ref([2], '[3]'); deleteObject([1]).then(() => console.log('Deleted'));
Create a reference named fileRef using ref(storage, 'oldfile.txt'), then delete it with deleteObject(fileRef).