Use const and let in Javascript instead of var
Summary
Basically there is no reason to use var and it is considered bad practice. Only use const and let.
A good video is on this topic is: https://laracasts.com/series/es6-cliffsnotes/episodes/3?autoplay=true
Scope differences
Variables declare...
stuartcreedprogramming.hashnode.dev4 min read