Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Replace `var` with `let` and `const`

オープン
#112 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

@gitdevjin がすでに取り組んでいます。

2024年10月2日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
javascript
領域
backend

調査の方向性

まず index.js と README.md を確認して、var の各使用箇所を見つけ、そのスコープと使用方法を調べます。宣言を適切に let または const に置き換え、その後、両方のファイルに var 宣言が残っていないこと、またドキュメント化された例が引き続きコードと一致していることを確認します。

索引モデルが issue の本文から書いたものです。

説明

future
Description

According to the docs, using var is not recommended, unless it's necessary, It would be useful to replace var in index.js with let or const depending on their scope and usage. And also as it's less error-prone, this change can make the code more robust for the possible future code change.

Task
  • Replace var with let or const in index.js file
  • Updatevar with let or const in README.md file
Supporting Docs and Articles

w3schools variables
Why don’t we use var anymore?

主要言語
JavaScript
スター
2k
フォーク
235
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

expressjs/cookie-parser のほかの issue

expressjs/cookie-parser の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。