/phonebook-app

phone book app

Primary LanguageJavaScript

phone book app

- Create phone book app
- Ask the user for operation through JS prompt
- If user enters “add”
- Ask him for the name of the contact and phone number
- Then create js object for that contact and add it to contacts array
- Then ask him for new operation and repeat
- If user enters “search”
- Ask him for something to search for
- Get the user input and search in the contacts array in name and phone
- Then show the user the full details of that contact
- Then ask him for new operation and repeat