Skip to main content

Javascript-basics:
Values

image for Values

Values

Values are the data types that can be assigned to variables and manipulated in code. The basic data types in JavaScript are:

  • Number: Numeric values.
  • String: Textual data.
  • Boolean: True or false values.
  • Null: Represents the intentional absence of any object value.
  • Undefined: Denotes an uninitialised variable.
  • Object: A collection of key-value pairs.