- Implied declaration is used when assigning a value to an identifier that is not declared.
- Functions invoked as functions pass the global object as their
- Assignments to nonwritable properties and attempts to create new properties on nonextensible objects fail silently.
- Code passed to
eval()can declare variables and define functions in the caller's scope.
argumentsobject in a function holds the values passed to the function and the values stored in the
argumentsobject are dynamically linked to the parameter values. For example:
document.write(x); //writes value of first parameter arguments = "A string argument passed to a function" //changes value of the first parameter document.write(x); //now write A string argument passed to a function
- If the
deleteoperator is followed by an unqualified identifier like a variable, function, or function parameter name, then this
deleteexpression evaluates to
false, but no errors are thrown.
deleteoperation will fail and the
deleteexpression will evaluate to
- There is no error for an object literal that has two or more properties with the same name.
- No errors are thrown if a function declaration has two or more parameters with the same name.
- Octal literals are allowed in certain implementations.
arguments.calleeare defined in some implementations.