Complete the code to update a single field in a Firestore document.
db.collection('users').doc('user123').update({ 'age': [1] });
The value to update the field must be a number, not a string or a variable name.
Complete the code to update the 'status' field to 'active' in a Firestore document.
db.collection('tasks').doc('task1').update({ 'status': [1] });
String values in JavaScript must be inside quotes.
Fix the error in the code to update the 'email' field in Firestore.
db.collection('users').doc('user456').update({ email: [1] });
The email value must be a string literal with quotes.
Fill both blanks to update 'firstName' and 'lastName' fields in Firestore.
db.collection('users').doc('user789').update({ 'firstName': [1], 'lastName': [2] });
Both names must be strings with quotes.
Fill all three blanks to update 'city', 'state', and 'zip' fields in Firestore.
db.collection('addresses').doc('addr1').update({ 'city': [1], 'state': [2], 'zip': [3] });
City and state are strings with quotes; zip is a number without quotes.
