Exercise 10 · Chapter: ObjectsOptional+50 XP
Contact Book
Create a nested object with 2 contacts. Each contact has a phone number and email:
- Alice: phone 111-2222, email [email protected]
- Bob: phone 333-4444, email [email protected]
Read a name from input and print their phone and email.
Example: for Alice:
Phone: 111-2222 Email: [email protected]
Need a hint?
3 available · costs 5 XP each
javascript
Output
Run your code to see the output here.