Skip to content

Change JS var usage to let or const#503

Open
j0lol wants to merge 2 commits intocodebar:gh-pagesfrom
j0lol:feat/es6-migration/let-const
Open

Change JS var usage to let or const#503
j0lol wants to merge 2 commits intocodebar:gh-pagesfrom
j0lol:feat/es6-migration/let-const

Conversation

@j0lol
Copy link

@j0lol j0lol commented Mar 18, 2026

I'm going through the JS tutorials, and it strikes me that they need to be updated to ES6 JavaScript. The first low-hanging fruit is migrating from var to let or const. These new idents have much more sensible scoping (to the block level, not the function level) so might confuse newcomers to the language.

@j0lol j0lol force-pushed the feat/es6-migration/let-const branch from efba16f to f6ea6dc Compare March 18, 2026 09:08
Copy link
Contributor

@biggianteye biggianteye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Co-authored-by: Burhan Ali <1482649+biggianteye@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants