title: Set type for function parameters?
body: <p>Is there a way to let a javascript function know that a certain parameter is of a certain type?</p>
  
  <p>Being able to do something like this would be perfect:</p>
  
  <pre><code>function myFunction(Date myDate, String myString)
  {
      //do stuff
  }
  </code></pre>
  
  <p>Thank you!</p>
  
  <p><strong>Update</strong>: Being that the answer is a resounding "no," if I want <code>myDate</code> to be treated as a date (in order to call date functions on it), I have to cast it as a date inside the function or set a new variable of type Date to it?</p>