Values
Javascript
Article REF: H3120 V2
Values
Javascript

Author : Christian Queinnec

Publication date: February 10, 2017 | Lire en français

Logo Techniques de l'Ingenieur You do not have access to this resource.
Request your free trial access! Free trial

Already subscribed?

3. Values

JavaScript is dynamically typed: any value produced by a calculation has a type that can be Boolean, number, string, function, or object. However, variables do not have a type and can contain values of different types in succession (although this is not necessarily recommended). JavaScript values are said to be 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.

We distinguish between primitive types such as Boolean, number, character string, or symbols, and objects, which are basically associative tables. There are also predefined object types (classes), for example, Date , RegExp or Error There are also two singletons...

You do not have access to this resource.
Logo Techniques de l'Ingenieur

Exclusive to subscribers. 97% yet to be discovered!

You do not have access to this resource. Click here to request your free trial access!

Already subscribed?


Article included in this offer

"Software technologies and System architectures"

( 229 articles )

Complete knowledge base

Updated and enriched with articles validated by our scientific committees

Services

A set of exclusive tools to complement the resources

View offer details
Contact us