workshopper / workshopper/javascripting
Scope Problem is Confusing
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 2.9k
- フォーク
- 1k
- 平均マージ
- 14時間 47分
- マージ済み PR(30日)
- 1
説明
As someone who has no previous JavaScript knowledge, the Scope problem is quite frustrating. Even though the introduction does a good job defining scope, I was not prepared to follow the code example.
Comments need to be added next to console.log to indicate that when we pass the argument within bar back to the function, var b = 2 will be ignored. I'm sure I haven't phrased that well, but it's a starting point.
Also, what purpose does the line foo(); // 4, 2, 48 serve? I understand that foo is the function's name, and the comments next to it are the values of these variables, but this statement is just sitting there. We need context. What would including foo(); at the end of this program do when we run it?
I also don't believe the IIFE section adds any relevant information to this problem. It is distracting.
Now moving on to the challenge, I don't understand why there is )(); after every closing }. I suppose that ties back to the foo(); in the example code, but I don't understand its usage.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Scope の問題の導入、コード例、IIFE のセクション、および issue で参照されている challenge から始めます。foo() を呼び出すと何が起こるのかを明確にし、console.log の関連する動作と末尾の )(); 構文を説明し、IIFE のセクションを含めるべきか検討します。JavaScript 初心者が例を追い、challenge の指示を理解できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100