Complete the code to get the current user's UID.
const userId = firebase.auth().currentUser.[1];The uid property uniquely identifies the user in Firebase Authentication.
Complete the code to update the user's display name in their profile.
firebase.auth().currentUser.updateProfile({ displayName: [1] });The updateProfile method expects an object with the new display name as a string.
Fix the error in the code to correctly fetch the user's email.
const email = firebase.auth().currentUser.[1];The correct property to get the user's email is email.
Fill both blanks to set the user's photo URL and then reload the user data.
firebase.auth().currentUser.updateProfile({ photoURL: [1] }).then(() => { return firebase.auth().currentUser.[2](); });Use a string URL for photoURL and call reload() to refresh user data.
Fill all three blanks to create a user profile object with UID, email, and display name.
const profile = { id: [1], email: [2], name: [3] };Use uid for id, email for email, and displayName for name from the current user.
