テキスト入力の現在値は、input要素の ( A ) プロパティで参照・更新できる。たとえば inputEl.( A ) = “hello” とすれば、表示値は ( B ) になる。
解答
A: value
B: hello
解説
value はフォーム要素(<input>, <textarea>, <select> など)の現在値を表します。代入すればUI上の表示も更新されます。
使用例(サンプルコード)
[ html ]
<input id="name">
<script>
const inputEl = document.getElementById('name');
inputEl.value = "hello"; // 表示が "hello" に
console.log(inputEl.value); // "hello"
</script>