write input with js code example
Example 1: set value using javascript
document.getElementById("myText").value = "your string";
Example 2: input in js
var answer = prompt("Question")
document.getElementById("myText").value = "your string";
var answer = prompt("Question")