JavaScript basic variable returning a value entered by user
<p>I'd like to try to return a value entered by the user. For example, I'm asking for his/her name, then he/she would input it in the textbox. The value of the textbox should be displayed. How will I do this? </p>

<p>In Java this is how I did it:</p>

<pre><code>Scanner in = new Scanner(System.in);
String uname;

System.out.print("Enter your name: ");
uname = in.nextLine();
System.out.println("Hello " + uname);
</code></pre>
