We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a120f5 commit 99eeba9Copy full SHA for 99eeba9
docs/2-browser-apps/06-project/index.mdx
@@ -73,8 +73,8 @@ todoList.appendChild(li);
73
また、`HTMLInputElement#value` プロパティから、DOM に対応する input 要素の入力欄への入力内容を取得できます。
74
75
```js
76
-todoText.textContent = todoInput.value; // todoInput の value を span 要素の textContent に代入する
77
-todoInput.value = ""; // todoInput の入力を空にする
+const inputValue = todoInput.value; // todoInput の value を取得する
+todoInput.value = ""; // todoInput の入力欄を空にする
78
```
79
80
<Details summary='ステップ 1 の解答例'>
0 commit comments