Search
Store a copy of the user object in updatedUser after updating the value of the role property to "Admin".
user
updatedUser
role
Note the that user object should not be mutated.
For example: