Question #32

Author: admin
tags: JavaScript   HTML   frontend (web)  
<input id="input1" type="text" value="sometext">
<input id="input2" type="text" value=10>
<input id="input3" type="text" value="10">
<input id="input4" type="number" value="10">
<input id="input5" type="number" value=10>
console.log(
  typeof input1.value,
  typeof input2.value,
  typeof input3.value,
  typeof input4.value,
  typeof input5.value
);
What will the console output be?
string number number number number
string number string number number
string number string string number
string string string number number
string string string string string
input.value always returns a string regardless of the value of the type attribute.
Rate the difficulty of the question:
easyhard