Don't mix es5 and es6
nickforddev opened this issue · comments
Nick Ford commented
If you're going to use es6 syntax, you should be using const
instead of var
.
I highly recommend you set up eslint as well, with a common config like standardjs or airbnb
LoganDark commented
There are no var
s anymore, and everything is properly scoped in an IIFE. The only global is now $
.