Moving forward I would say, don't use var anymore. Ever since 2015, the industry has been moving away from it in favor of let and const. Any time you see var in the wild, it's probably old code examples that haven't been updated in a while. If you're confused when seeing examples online, you can mentally replace them with let. Hope that helps!
Moving forward I would say, don't use
var
anymore. Ever since 2015, the industry has been moving away from it in favor oflet
andconst
. Any time you seevar
in the wild, it's probably old code examples that haven't been updated in a while. If you're confused when seeing examples online, you can mentally replace them withlet
. Hope that helps!thanks for the advice it help a lot!
No problem!