title: Node.js get user input without printing a newline
body: <p>When using <code>readline.question()</code>, you always get a newline at the end of the user input. How can you remove that newline or not output it from the beginning?</p>
  
  <p>For example, consider the following code:</p>
  
  <pre><code>const readline = require("readline");
  const rl = readline.createInterface({
      input: process.stdin,
      output: process.stdout,
      terminal: true
  });
  rl.question("Question: ", line =&gt; {
      console.log("?");
  });
  </code></pre>
  
  <p>Expected:</p>
  
  <pre><code>Question: [User question]?
  </code></pre>
  
  <p>Actual:</p>
  
  <pre><code>Question: [User question]
  ?
  </code></pre>
  
  <p>This asks the user for some text, and adds a <code>?</code> mark to the end of the user input. But the <code>?</code> mark is at the next line. </p>