DEV Community

kofa Sunday
kofa Sunday

Posted on

Add a Fake Name to the Petition List

In this exercise, we get users to add their names to a petition list.

First Option We update user with the total number of people on the list by accessing the array length and displaying the number in a sentence(preferred method).

Second Option The list is an order list so user can know the total number of people on the list that way. Also it good for a members of an org who members would like to know who's on the list too.

What I need help with? Please as the code that allows only 10 name on the list. And info user the list is full using the id = update one the it reaches 10.

Top comments (0)