get input value input create element code example Example: input js var answer = prompt("Ask your question here");