Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace var with let in javascript tutorials #443

Open
andyjp94 opened this issue May 8, 2019 · 2 comments
Open

Replace var with let in javascript tutorials #443

andyjp94 opened this issue May 8, 2019 · 2 comments

Comments

@andyjp94
Copy link

andyjp94 commented May 8, 2019

I was wondering if there was appetite for changing the tutorials to use let instead of var? It behaves more like other programming languages people may be coming from and is now supported by all major browsers as per https://caniuse.com/#search=let with 90% full support in browsers and 94.5% including partial support.

Let me know if this would be appreciated and if so I'm happy to update the docs and raise the PR

@brunogirin
Copy link
Contributor

We want to do a more in-depth refresh of the JavaScript tutorials and changing var to let would be a start, thanks.

@carlwood
Copy link

carlwood commented Jun 6, 2019

I'd be up for collaborating with someone on a separate 'ES6 Basics' course where we could include that sort of thing as well as arrow functions, template strings, spread operator, destructuring, etc. At least with a new course - or extra lesson - we can show the effects of changing your code from var to let and const, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants