title: How to pass an argument to a function in Node.js?
body: <p>So far this is my code:</p>
  <pre><code>function number(numm){
  var ones = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'];
    var result;
    var numString = num.toString();
  
    if (num === 0){
        console.log(ones[0]);
      return ones[0];
    }
  if (num &lt; 10) {
        result = ones[num];
        console.log(result);
      return result;
    }
  
    if (numString.length === 2) {
      result = ones[numString[0]] + ' ' + ones[numString[1]];
      console.log(result);
      return result;
    }
  
    if (numString.length == 3) {
      if (numString[1] === '0' &amp;&amp; numString[2] === '0'){
          result = ones[numString[0]] + ' zero zero';
          console.log(result);
          return result;
      }
      else{
          result = ones[numString[0]] +  ones[numString[1]] + ' ' + ones[numString[2]];
          console.log(result);
          return result;
      }
    }
  }
  </code></pre>
  <p>It prints whatever user inputs into its phonetic value, so when the user inputs 25, it should print TwoFive. However, I can't find anything about setting my node so that when the input is: <code>node main.js 25</code> it should call my function and print TwoFive. Any pointers as to how to achieve this? Will this work for an array of elements? <code>node main.js 3 25</code> should print <code>Three, TwoFive</code></p>