how to write html input field in javascript function code example Example: input js var answer = prompt("Ask your question here");