Javascript — Data Types in JavaScript
JavaScript has different types of data:
String: textNumber: numbersBoolean: true/falseArray: list of itemsObject: key-value pairsnullandundefined: empty values
let name = \"Alice\"; // String
let age = 30; // Number
let isOnline = true; // Boolean
let colors = [\"red\", \"blue\"]; // Array
let person = { name: \"Alice\", age: 30 }; // Object