Skip to content

Latest commit

 

History

History

quiz-11

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Facebook Friends

Directions

Create an object called facebookProfile. The object should have 3 properties:

  • your name
  • the number of friends you have, and
  • an array of messages you've posted (as strings)

The object should also have 4 methods:

  • postMessage(message) - adds a new message string to the array
  • deleteMessage(index) - removes the message corresponding to the index provided
  • addFriend() - increases the friend count by 1
  • removeFriend() - decreases the friend count by 1