Complete the code to set a user property named 'favorite_color' with the value 'blue'.
firebase.analytics().setUserProperties({ [1]: 'blue' });The setUserProperties method requires the property name as the key. Here, 'favorite_color' is the correct user property name.
Complete the code to set the user property 'membership_level' to 'gold'.
firebase.analytics().setUserProperties({ [1]: 'gold' });To set a user property, use the exact property name as the key. Here, 'membership_level' is the correct key.
Fix the error in the code to correctly set the user property 'preferred_language' to 'en'.
firebase.analytics().setUserProperties({ [1]: 'en' });User property names must use underscores and lowercase letters. 'preferred_language' is the correct format.
Fill both blanks to set user properties 'age' to 30 and 'subscription_status' to 'active'.
firebase.analytics().setUserProperties({ [1]: 30, [2]: 'active' });The user property keys are 'age' and 'subscription_status' as given. Use these exact keys to set the properties.
Fill all three blanks to set user properties: 'gender' to 'female', 'level' to 'beginner', and 'notifications_enabled' to true.
firebase.analytics().setUserProperties({ [1]: 'female', [2]: 'beginner', [3]: true });Set the user properties using the exact keys and values: 'gender', 'level', and 'notifications_enabled'. Note that 'notifications_enabled' is a boolean and should not be in quotes here.