get form input from javascript code example Example: input js var answer = prompt("Ask your question here");