File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
docs/2-browser-apps/06-project Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ addButton.onclick = () => {
1111 todoInput . value = "" ;
1212 editButton . textContent = "編集" ;
1313 editButton . onclick = ( ) => {
14- todoText . textContent = prompt ( "編集内容を入力してください 。" ) ;
14+ todoText . textContent = prompt ( "新しい内容を入力してください 。" ) ;
1515 } ;
1616 deleteButton . textContent = "削除" ;
1717 deleteButton . onclick = ( ) => {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ addButton.onclick = () => {
1313 todoInput . value = "" ;
1414 editButton . textContent = "編集" ;
1515 editButton . onclick = ( ) => {
16- const input = prompt ( "編集内容を入力してください 。" ) ;
16+ const input = prompt ( "新しい内容を入力してください 。" ) ;
1717 if ( input !== "" ) todoText . textContent = input ;
1818 } ;
1919 deleteButton . textContent = "削除" ;
Original file line number Diff line number Diff line change @@ -176,8 +176,7 @@ addButton.onclick = () => {
176176[ ` prompt ` 関数] ( https://developer.mozilla.org/ja/docs/Web/API/Window/prompt ) を使い、ユーザーに入力を求めることができます。
177177
178178``` javascript
179- // ユーザーに入力を求め、入力された値を todoText.textContent に代入する
180- todoText .textContent = prompt (" 新しい内容を入力してください。" );
179+ todoText .textContent = prompt (" 新しい内容を入力してください。" ); // ユーザーに入力を求める
181180```
182181
183182<Details summary = ' ステップ 3 の解答例' >
@@ -212,7 +211,7 @@ addButton.onclick = () => {
212211 todoInput .value = " " ;
213212 editButton .textContent = " 編集" ;
214213 editButton .onclick = () => {
215- todoText .textContent = prompt (" 編集内容を入力してください 。" );
214+ todoText .textContent = prompt (" 新しい内容を入力してください 。" );
216215 };
217216 deleteButton .textContent = " 削除" ;
218217 deleteButton .onclick = () => {
@@ -281,7 +280,7 @@ addButton.onclick = () => {
281280 todoInput .value = " " ;
282281 editButton .textContent = " 編集" ;
283282 editButton .onclick = () => {
284- const input = prompt (" 編集内容を入力してください。 " );
283+ const input = prompt (" 新しい内容を入力してください " 。 );
285284 // prompt 関数は入力された文字列が空の場合は空文字列 ("")、キャンセルされた場合は null を返す
286285 if (input !== " " && input !== null ) todoText .textContent = input;
287286 };
You can’t perform that action at this time.
0 commit comments