How to work with Primitives in Type Script

 In TypeScript, primitive types are the basic data types that are built into the language. They are used to represent simple values like numbers, strings, and booleans, and cannot be broken down into smaller parts. The primitive types in TypeScript are:

  1. number: Represents both integer and floating-point numbers.
  2. string: Represents sequences of characters.
  3. boolean: Represents a true or false value.
  4. null: Represents a deliberate absence of any object value.
  5. undefined: Represents an uninitialized value.
  6. symbol: Represents a unique identifier (used for object property keys).
  7. bigint: Represents large integers beyond the number range.