take value from user in javascript code example Example: prompt js var answer = prompt("How are you? ");