javascript innerHTML is not updating the value of input field
var i = document.getElementById("inp-text");
i.innerHTML = 'hello';
<!DOCTYPE html>
<html>
<head>
<title>Java Script innerHTML not working</title>
</head>
<body>
<input type="text" id="inp-text" name="" />
</body>
</html>