Definition: A sequence of characters used for text.
Example:
Use: Store names, messages, sentences, etc.
Why: Easy to handle user input and display text.
When: Any time you work with text or words.
Know more in DetailDefinition: Represents both integers and floating-point numbers.
Example:
Use: For calculations, measurements, scores, prices.
Why: Essential for math and logic operations.
When: Anytime you need numeric values.
Know more in DetailDefinition: Represents either true or false.
Example:
Use: For conditional checks and logic (like login status).
Why: Controls program flow (e.g., show/hide UI).
When: Use when result is yes/no, on/off, true/false.
Definition: A variable declared but not assigned a value.
Example:
Use: Detect uninitialized variables.
Why: Helps find bugs or logic errors.
When: Happens automatically if no value is assigned.
Definition: Intentional absence of value (manually assigned).
Example:
Use: Reset or empty a variable intentionally.
Why: Tells program that a value is purposely "nothing".
When: Use when a variable will later be given data.
Definition: Used to store very large integers beyond the normal range.
Example:
Use: Store large numbers like those in cryptography or math.
Why: Normal numbers may lose precision.
When: Numbers > 253 or need full precision.
Definition: A unique, immutable identifier (often used as keys).
Example:
Use: Add hidden properties to objects.
Why: Avoid property name collisions.
When: Advanced use cases like meta-programming.
Definition: A collection of key-value pairs.
Example:
Use: Store structured data (e.g., users, products).
Why: Very flexible and powerful data container.
When: When storing grouped or nested values.
Definition: A list of values stored in a single variable.
Example:
Use: Store collections of data like lists or tables.
Why: Easy to loop and manage multiple items.
When: When data has an order or needs iteration.
Definition: A reusable block of code to perform a task.
Example:
Use: Organize logic into reusable units.
Why: Helps with code reuse, clarity, and testing.
When: Use for repeated tasks or actions.