Check the result in the browser console and also see the source code of demo1.js and demo1.html to understand the operations performed.
Data from localStorage:
{{ localStorageData | json }}