[ES6]: replace var by let
to adopt to modern JS and ES6 we should through out var
wherever possible (probably everywhere, unless we have very special scoping requirements) and use let
instead, or where possible even const
to adopt to modern JS and ES6 we should through out var
wherever possible (probably everywhere, unless we have very special scoping requirements) and use let
instead, or where possible even const