localstorage in javascript keys code example Example: javascript localstorage var KeyName = window.localStorage.key(index);