how to get string input in javascript code example
Example 1: input js
var answer = prompt("Ask your question here");
Example 2: get input string js
document.getElementById('textbox_id').value to get the value of desired box
For example, document.getElementById("searchTxt").value;