With ES6, I've stated using let
keyword, instead of var
.
Recently, in one of my code base, I didn't find any issue with removing var
with let
in 10000+ lines of code.
I know the difference between var
and let
, but is there any practical reason where we should prefer var
over let
?.