I am new to HTML5. I want to know about the performance between Javascript Variable/Object and HTML5 Local storage.

Which one is the best in performance and memory wise. Could any one differentiate these two.

P.S. As for as i know, manually we need to clear the local storage where as javascript object automatically will be cleared when the page get refreshed.

Thanks.