Types of data in programming

Several forms of data may be used in programming. Here’s an example:

let persons = 1;
let greet = "Hello!";

In the example above:

  • The variable, persons, stores a number.
  • The variable, greet, stores a string.

Get hands-on with 1400+ tech skills courses.