Skip to content

Commit 932043a

Browse files
committed
編集内容 -> 新しい内容
1 parent b8b7ce6 commit 932043a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ addButton.onclick = () => {
212212
todoInput.value = "";
213213
editButton.textContent = "編集";
214214
editButton.onclick = () => {
215-
todoText.textContent = prompt("編集内容を入力してください");
215+
todoText.textContent = prompt("新しい内容を入力してください");
216216
};
217217
deleteButton.textContent = "削除";
218218
deleteButton.onclick = () => {
@@ -281,7 +281,7 @@ addButton.onclick = () => {
281281
todoInput.value = "";
282282
editButton.textContent = "編集";
283283
editButton.onclick = () => {
284-
const input = prompt("編集内容を入力してください");
284+
const input = prompt("新しい内容を入力してください");
285285
// prompt 関数は入力された文字列が空の場合は空文字列 ("")、キャンセルされた場合は null を返す
286286
if (input !== "" && input !== null) todoText.textContent = input;
287287
};

0 commit comments

Comments
 (0)