title: Is there a simple input command in JavaScript like c++'s cin> >?
body: <p>I want to know whether there is an input command in JavaScript like "cin>>" in C++ or the input in old Basic... because I need to ask the user to enter a word or a number on a web page and want to save that input into a variable and then print that variable using document.write(). There's the option of inputting through an input box in HTML and getting that input using document.getElementById and then writing that with the innerHTML element into a paragraph tag, but I just want to know if there's a simpler version available in js. Thanks.</p>