Mercurial > js4py
view core-javascript/arguments.rst @ 194:2f10061fec29 javascript-exercises
$ python py/remove_answers.py
| author | jf3243 |
|---|---|
| date | Mon, 21 Nov 2011 17:27:12 +0000 |
| parents | ea9c424d19d7 |
| children |
line wrap: on
line source
Arguments ========= This can be omitted at a first reading. The main point here is that in JavaScript #. There is no checking for number and type of arguments. #. The arguments actually supplied are stored in a special variable, called *arguments*. #. The value of *arguments* is almost, but not exactly, an array. Test code --------- .. literalinclude:: /core-javascript-work/tutorial.js :language: javascript :start-after: start return_arguments :end-before: end return_arguments
