Unanswered: Fetch all records from store using localstorage proxy

Unanswered: Fetch all records from store using localstorage proxy

Hi

I have created a form using sencha touch 2.1 having three Textfield. i want to do user insert info into textField and save into store.then fetch all the records from store and display on console.i try below code but it gives errors. "Uncaught SyntaxError: Unexpected token for".

Thanks
i used array and push element at the end of array now it works.
but when i close the browser all the records flush away from an array. so what is the use of localstorage.i want data persist in localstorage how do i achieve that.