Storing Multiple variable in local storage in JavaScript

i want to store multiple data in html by using local storage

https://www.includehelp.com/code-snippets/local-storage-using-javascript.aspx