title: Question on Javascript Function Parameters
body: <p>I was trying to write some javascript function and realised that</p>
  
  <pre><code>function testFunction(input_1, input_2, input_3) {
         alert("alert");
  }
  </code></pre>
  
  <p>however when i call the function like this:</p>
  
  <pre><code>&lt;input type="button" value="click" onclick="testFunction("1", "2")"&gt;
  </code></pre>
  
  <p>why will it still work even with just two parameters?</p>