how to take input data through html and show browser javascript code example Example: input in js var answer = prompt("Question")