Pantrypoints Pantrypoints

Object Data Kinds

August 22, 2023 1 minutes  • 51 words
Table of contents

Objects are non-primitive data kinds.

let user: {
	name: string,
	age: number
};

To call the object: user.name

  • object is all non-primitive values
  • Object is the functionality of all objects

[object] [Object]

Empty Object

let user: {};

Enum

The enumerated kind uses constant values

enum Directions { N, S, E, W};
Follow Us! →

We're creating a new Economic System from a new Economic Science! Please support us by leaving your email or leaving a comment above.