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

第10章p160「使われない変数?」と思ってしまうコード例 #2

Open
JunichiIto opened this issue Jun 28, 2020 · 0 comments

Comments

@JunichiIto
Copy link

これもissueというか感想です。
p160のjs/script.tsを見ると、ローカル変数のnextTodoTextがどこにも使われていないので、一瞬「サンプルコードの記述ミス??」と思ってしまいました。

これ、「変更前は使われていて、このあとの修正で再度使われる変数」なんですね。
その点がコードを見ただけではわからなかったので、何かひとこと補足があればいいな〜と思いました。

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

1 participant