Skip to content

Commit 57a126c

Browse files
committed
最終調整
1 parent a6c8f2c commit 57a126c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/2-browser-apps/06-project/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ const li = document.createElement("li");
7070
todoList.appendChild(li);
7171
```
7272

73-
また、`HTMLInputElement#value` プロパティから入力欄への入力内容を取得できます
73+
また、`HTMLInputElement#value` プロパティから、DOM に対応する input 要素の入力欄への入力内容を取得できます
7474

7575
```js
76-
todoText.textContent = todoInput.value; // span 要素の textContenttodoInput の value にする
76+
todoText.textContent = todoInput.value; // todoInput の valuespan 要素の textContent に代入する
7777
todoInput.value = ""; // todoInput の入力を空にする
7878
```
7979

@@ -281,7 +281,7 @@ addButton.onclick = () => {
281281
editButton.textContent = "編集";
282282
editButton.onclick = () => {
283283
const input = prompt("編集内容を入力してください");
284-
// prompt が空で入力された場合は空文字列 ("")、キャンセルした場合は null を返す
284+
// prompt が空で入力された場合は空文字列 ("")、キャンセルされた場合は null を返す
285285
if (input !== "" && input !== null) todoText.textContent = input;
286286
};
287287
deleteButton.textContent = "削除";

0 commit comments

Comments
 (0)