Link to home
Start Free TrialLog in
Avatar of RajG1978
RajG1978

asked on

How to create javascript class and store input values in memory?

How can I create a class Person, with the fields firstname, lastname, age and zipcode. I need to store a large collection of these Person objects in memory. I need to be able to add and delete items, in addition to being able to sort and search by any of the fields.  How can use  Javascript to demonstrate how you would accomplish this.
Can you please describe a memory and performance efficient data structure and mechanism to accomplish this.
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

This sounds like homework and we are not allowed to answer these types of questions.  If you can present us with some code we can help point you in the right direction.
ASKER CERTIFIED SOLUTION
Avatar of Sar1973
Sar1973
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial