understanding-es6
understanding-es6 copied to clipboard
Style guide
Right now the examples are good, but the styles are a little all over the place. One approach would be to use a style guide and enforce it somehow e.g. gulp. May I recommend Airbnb as the basis for writing examples.
Another question, wouldn't it be good to use const/let instead of var in the examples?
According to Airbnb's guide, const should always be used unless there are cases for let.
Of course it's a style guide, so open to a lot of interpretation. Though I notice more and more people (including myself) are adopting it these days.
I agree with you, this whole thing started as me learning and in the process creating help of everyone else. That is reason styles are a bit messed up.
I will update this thing sometime over this week else please send a PR and I will merge.
I can do it tonight, that's no problem