Skip to content

docs: use const instead of var in README examples#1143

Open
Hashim1999164 wants to merge 1 commit into
expressjs:masterfrom
Hashim1999164:docs/readme-var-to-const
Open

docs: use const instead of var in README examples#1143
Hashim1999164 wants to merge 1 commit into
expressjs:masterfrom
Hashim1999164:docs/readme-var-to-const

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Jul 23, 2026

Copy link
Copy Markdown

Summary

  • Replace var with const in all README code samples so examples match modern JavaScript style.

Closes #993

Test plan

  • node scripts/lint-readme.js
  • git diff --check
  • Spot-check README examples still read clearly

Update README code samples to modern JavaScript style by replacing
var with const. Closes expressjs#993.
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.

Update the var keyword in README to const

1 participant