title: How can I read input in JavaScript function line by line?
body: <p>My JavaScript function accepts the input in this format:</p>
  
  <pre><code>6
  12
  </code></pre>
  
  <p>How can I assign first and second line to variables?</p>