A simple contact management application using browser storage.
- ✅ Add New Contact - Store name, phone, email, address
- 📋 View All Contacts - See complete contact list
- 🔍 Search Contacts - Find contacts by keyword
- 👁️ View Contact Details - See full contact information
- ✏️ Edit Contacts - Update existing contact data
- 🗑️ Delete Contacts - Remove unwanted contacts
- 💾 Auto Save - Data automatically saved to localStorage
- Open index.html in browser
- Choose from main menu options
- Follow on-screen instructions
- Data saves automatically to browser storage
- Add Contact
- View Contacts
- Search Contacts
- Contact Details
- Update Contact
- Delete Contact
- Exit
- Storage Management (storage.js)
- loadContacts() - Load from localStorage
- saveContacts(contacts) - Save to localStorage
- initializeStorage() - Setup initial data structure
- addContact() - Add new contact
- showContacts() - Show all contacts
- searchContacts(keyword) - Find contacts
- getContactDetailsById(id) - Show full details
- editContactById(id, newData) - Modify contact
- deleteContactById(id) - Remove contact
- Technology: localStorage API
- Key: addressBookContacts
- Format: JSON array of contacts
- Auto-save after every change
- Auto-load on page load
{
id: "unique-id",
name: "John Doe", // ✅ Required
phone: "08123456789", // ✅ Required
birthdate: "1992-09-30", // ❌ Optional
email: "[email protected]", // ❌ Optional
address: "Jakarta", // ❌ Optional
labels: ["client", "family", "friend", "work"] // ❌ Optional
}- ✅ Name and phone are required
- ✅ Unique ID generation
- ✅ Delete confirmation
- ✅ Empty fields = no change (edit)
- ✅ Data persistence across browser sessions Edit Contacts