Update the Profile
JavaScript
10 pts
Update the Profile
Senait’s profile has a key with a space in it. Work with its properties:
- Print the favourite subject (you need bracket notation).
- Change
cityto"Mendefera"and print it. - Delete
agewithdelete, then print whether"age"is stillinthe profile. - Add a property using the variable
field(its value is"hobby") with the value"drawing", then printprofile[field].
Expected output:
Maths Mendefera false drawing
Checklist
- Read the favourite subject with bracket notation.
- Change the city.
- Delete
ageand check it within. - Add the hobby through the variable
field. - Print the four lines.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
