I am a coding beginner and I need help deciding on the way I will store data for the website I am building. I have a section on my website where I will be listing items. Each item will have several properties. I was thinking between javascript objects or storing the item and the item's properties in a database. What are some situations where I should use a database, js objects, or view files? Any advantages of each type? Also how about when you are trying to sort the items?
You should store data in your database Only When you need !
EDIT :
If you have some operations like sort, order and etc :