How to create a table and store the values as rows in localstorage?

I need to create a table with some columns in local Storage. Then I have to store values as rows of it. Then I need to get the record from that by searching based on the particular values. How to do that?

It’s a key:value storage for small amounts of unstructured data. The relational database concepts of rows or columns do not exist in that context.