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 88e6a86 commit e667cebCopy full SHA for e667ceb
docs/2-browser-apps/06-project/index.mdx
@@ -74,8 +74,11 @@ todoList.appendChild(li);
74
75
```js
76
addButton.onclick = () => {
77
- console.log(todoInput.value); // todoInput に入力された内容を console に表示する
+ const todoItem = document.createElement("li"); // li 要素を作る
78
+ const todoText = document.createElement("span"); // span 要素を作る
79
+ todoText.textContent = todoInput.value; // span 要素の textContent を todoInput の value にする
80
todoInput.value = ""; // todoInput の入力を空にする
81
+ // 以下 Node#appendChild などを使い、整形する
82
};
83
```
84
0 commit comments