As a corollary to this question, if you created an object in javascript using the syntax new (Date) how would you pass in any constructor args/params?
In other words is there an equivalent of new Date(2000) or is that just how you would do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The parens return the result of the contained expression, so this will work:
This is the same as: