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

[javascript/en] var -> let/const #4707

Open
sjrct opened this issue Jul 11, 2023 · 2 comments
Open

[javascript/en] var -> let/const #4707

sjrct opened this issue Jul 11, 2023 · 2 comments

Comments

@sjrct
Copy link
Contributor

sjrct commented Jul 11, 2023

In the javascript tutorial the var keyword is introduced and used extensively, while let and const are only mentioned briefly under the ES6 additions section at the end. In this day and age, where ES6 is support is extremely common and use of var is essentially entirely been supplanted by let and const, wouldn't it make more sense to have var be the footnote instead?

I can make this change, I just want to see what ppl think

@wandrey7
Copy link

You have a good idea, but it would be ideal to leave the var because there are still many projects that use it, this is indispensable when learning javascript. We would then have var, let and const

@sjrct
Copy link
Contributor Author

sjrct commented Apr 30, 2024

ES6 which introduced let/const which made var obsolete has been out since 2015, almost a decade. I agree that var is still used plentifully and should be discussed, but I really do think that the primacy should be given to let & const and var should be the afterthought?

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

2 participants