Variables (in programming)


A variable is a named container used to store data.


👉 Example (JavaScript):

let name = "Jeeshma";

Here, name is a variable storing a value.


In short:

➡️ Variable = a box that holds data


Data Types


A data type defines what kind of data a variable stores.


👉 Common types:

  • String → "Hello"
  • Number → 25
  • Boolean → true / false
  • Array → [1, 2, 3]
  • Object → {name: "Jeeshma"}


In short:

➡️ Data Type = type of data inside the box