Hi Evan. Thanks so much for reading.

Local storage is a good option for storing simple data in the browser.

A loop is only good for processing arrays and other iterable objects so it’s not useful for storage.

You can store selectors as a string in Local storage like anything else. If you want to store Twitter follower names, you can just put them in an array and then call JSON.stringify to convert the array into a string.

Written by

Web developer. Subscribe to my email list now at http://jauyeung.net/subscribe/. Email me at hohanga@gmail.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store