JavaScript syntax: Difference between revisions

Content deleted Content added
For ... in loop: change misleading wording
Line 279:
}
 
The number of arguments given when calling a function may not necessarily correspond to the number of arguments in the function definition; a named argument in the definition that does not have a matching argument in the call will have the value <code>undefined</code>. Within the function the arguments may also be accessed through the <code>arguments</code> list (which is an objectarray); this provides access to all arguments using indices (e.g. <code>arguments[0], arguments[1], ... arguments[n]</code>), including those beyond the number of named arguments.
 
Basic data types (strings, integers, ...) are passed by value whereas objects are passed by reference.