Loading Depth Study
Preparing your workspace
A data type describes what kind of value a piece of data represents and what operations can be performed on it.
Programs work with different kinds of information. Common categories include numbers, text, true or false values, collections, and objects. The exact names and rules vary by programming language, but the core idea is the same: the program must know how a value should be interpreted and used. Understanding data types helps prevent incorrect operations and unexpected results.
A student system may store a student's name as text, age as a number, and whether the student is active as a boolean.
let name = "Aman"; let age = 20; let isActive = true; console.log(typeof name); console.log(typeof age); console.log(typeof isActive);
string number boolean