Data Types

  • Note

    1. Built-in types

    Data type Keyword Description
    Number number Double precision 64-bit floating point values. It can be used to represent both, integers and fractions.
    String string Represents a sequence of Unicode characters
    Boolean boolean Represents logical values, true and false
    Void void Used on function return types to represent non-returning functions
    Null null Represents an intentional absence of an object value.
    Undefined undefined Denotes value given to all uninitialized variables

    2. User-defined Types

    Enumerations (enums), classes, interfaces, arrays, and tuple.