Your first task is to add your name to the array of school librarians that looks like this:
let approvedLibrarians = ["Dewey"];
Type in the JavaScript code and click Submit to add your name to the list of approvedLibrarians array.
Now the approvedLibrarians list looks like:
Now you have to update your librarian profile. The library stores all this in an array of objects called userProfiles.
userProfiles looks like this right now:
As you can see, one profile has been made for you with some details that need updating. First, let's remember how to look at an array element at a specific index (or position).
Type in the code to get the first profile object of the userProfiles array.
This is userProfiles:
Using bracket notation (using the square [] brackets), type in how you would access the value for the "title" property from "Dewey's" profile from the userProfiles array.
userProfiles:
Right now, the values for your user profile are an empty string and an empty array. Update your user profile object from the userProfiles array and set the value for your "title" to be "Developer".
userProfiles:
Update your user profile in the userProfiles array set the "workDays" property to have "Tuesday" and "Thursday" as the value.
Almost finished - add a new property to your profile in the userProfiles array and set its value to whatever you like.
userProfiles:
💯you did it! You're a full-fledged librarian.