3. Values
Javascript is dynamically typed: any value produced by a calculation has a type that can be Boolean, number, character string, function or object. Variables, on the other hand, have no type and can successively contain values of different types (although this is not necessarily advisable). Javascript values are called first-class citizens because there are no restrictions on their use: they can be stored in variables, arrays, objects, passed as function arguments or returned as function results.
A distinction is made between primitive types, such as Boolean, number, string or symbol, and objects, which are basically associative tables. There are also predefined object natures (classes), for example, Date , RegExp or Error . There are also two singletons...
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!
Values
Article included in this offer
"Traceability"
(
56 articles
)
Updated and enriched with articles validated by our scientific committees
A set of exclusive tools to complement the resources
Bibliography
- (1) - SELF UNGAR (D.), SMITH (R.B.) - Self : The Power of Simplicity. - OOPSLA '87 Conference Proceedings, pp. 227-241, Orlando, FL, October 1987
Standards
- ECMAScript® 2016 language specification - ECMA-262 - 2016
- IEEE Standard for the Scheme Programming Language...
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!