How do I read this argument list? Is this two values in the argument list or just one? What does the comma inside the bracket mean?
fetch( key [,default] ) -> obj
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.
I don’t see anywhere on that documentation site where the notation used for argument lists is explained. However, the square brackets are frequently used to mean “optional” in programming documentation. So this means that the
fetchmethod can be called with just one argument, or two. If you pass two, obviously you would need a comma. So these two calls would be valid: