JS still there - suniladhya/Advantage GitHub Wiki

var vs. let Event bubling Js Tut

Toptal

No Local Storage

Cookies max size allowed => 4 KB Disadvantage of Cookies: Need a web server to generate.

Local Storage => 5 MB

Can store data until the item is deleted.

Disadvantage:

Can Only store string

Synchronous

No web worker Support

~5MB across all major browsers

Any JavaScript code on your page can access local storage

Why Local Storage is Insecure and You Shouldn’t Use it to Store Sensitive Data

So session storage are good when want to stare in that particular session.

var vs log

  1. let wont work in a system, if not upgraded in a decade.
  2. Block Scope and function scope.
  3. var gets hoisted to the top of function