view core-javascript/arguments.rst @ 213:0ea90a1819c2 default tip

Custom theming
author Radomir Dopieralski <radomir.dopieralski@allegro.pl>
date Wed, 27 Jun 2012 16:35:54 +0200
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