- Git
- Html
- CSS
- BootStrap
- Javscript
- jQuery
- Bootstrap
- JavaScript Objects
- JavaScript Mock databases
This is an application for adding contacts to an address Book.... In this website you can easily add in contacts, remove contacts or edit contacts and With my amazing mock database, you can add in new contacts just like the way you do with your mobile phone
- Open the directory.
- Click on the index.html file. _Note: the website is designed to run on a web browser just be sure you have one. _
- That's all the installation process you need to carry out. Have fun while working with this application. If you think its cool, be sure to give the application a thumbs up
As at the launching of this Project there are zero bugs in it. But if you do find a bug in it, be sure to notify me via my various social media handles below
https://emzzy241.github.io/Address-BOOK-2.0/
Licensed under the GNU General Public License © 2022 by Mojiboye Emmanuel All Rights Reserved.
Connect with me @Emmanuel.9944 on instagram and on all other social media pages all @Emmanuel Oluwole
Describe: The very first constructor of our Application; the function for Contacts
Test: "It will check if the console remembers our constructor and associates it with the testContact variable" Code: let testContact = new Contact("Emmanuel", "Oluwole", "Mojiboye", "09012857304", "[email protected]");
testContact.MiddleName;
Expected Output: 'Oluwole'
Test: "A prototype method would be created for Contacts constructor and the method would concatenate user's last name and first name together" Code: let testContact = new Contact("Emmanuel", "Oluwole", "Mojiboye", "09012857304", "[email protected]");
testContact.fullName();
Expected Output: 'Mojiboye Oluwole Emmanuel'
Describe: The second constructor; the constructor for our database has been written: Let us create the first method for our database that will help us to add in contacts
Test: "Testing the first method for our mock database: the addContact() method" Code:
let addressBook = new AddressBook();
let contact = new Contact("Adanna", "Mercy", "Okoli", "+234-858585990", "[email protected]");
let contact2 = new Contact("Jennifer", "Ebun", "Ololade", "+227-9099900919", "[email protected]");
addressBook.addContact(contact); addressBook.addContact(contact2);
Test: "Testing if our method candifferentiate between two people if their names are both Emmanuel"
Code: let emmaContact1 = new Contact("Emmanuel", "Michael", "Ojedayo", "+234059509049", "[email protected]");
let emmaContact2 = new Contact("Emmanuel", "Richie", "Bimbola", "+23405334566", "[email protected]");
addressBook.addContact(emmaContact1); addressBook.addContact(emmaContact2);
Expected Output: {1: Contact, and 2: Contact}
Test: "Testing if our method cand ifferentiate between two people if their names are both Emmanuel"
Code: let emmaContact1 = new Contact("Emmanuel", "Michael", "Ojedayo", "+234059509049", "[email protected]");
let emmaContact2 = new Contact("Emmanuel", "Richie", "Bimbola", "+23405334566", "[email protected]");
addressBook.addContact(emmaContact1); addressBook.addContact(emmaContact2);
Expected Output: {1: Contact, and 2: Contact}
Describe: The method for finding contacts
Test: "A test for checking if the findContact() methods can truly find a user's contact"
Code: let contact = new Contact("Adanna", "Mercy", "Okoli", "+234-858585990", "[email protected]");
let contact2 = new Contact("Jennifer", "Ebun", "Ololade", "+227-9099900919", "[email protected]");
addressBook.findContact(2); Expected Output: Contact {firstName:........ id: 2}
Describe: The method for deleting contacts
Test: "When we run our method on a contact,It will find that contact and delete it"
Code: let contact = new Contact("Adanna", "Mercy", "Okoli", "+234-858585990", "[email protected]");
let contact2 = new Contact("Jennifer", "Ebun", "Ololade", "+227-9099900919", "[email protected]");
addressBook.deleteContact(2);
Expected Output: Contact 2 gets deleted and its Id is never reused when we add in more contacts
Describe: The method for showing users full address in one line and only separating it with a comma
Test: "When we run our method on a contact variable(datatype name is object) storing our contact object, it returns user's workAddress on a single line, users homeAddress on another line and user's schoolAddress on another line with commas separating them"
Code: let testOtherAddresses = new OtherAddresses("Ishaga", "Ogba", "Lagos");
let testOtherAddresses2 = new OtherAddresses("Matogun", "Arolambo", "Ogun");
testOtherAddresses.fullAddress();
Expected Output: OtherAddresses {street: 'Ishaga', city: 'city', state:'Lagos'........ }