What is Notation?

Notation simply means a system of symbols, signs, or marks used to represent information in a clear and structured way.


Notation is a way of writing things using symbols instead of long words.


Examples

1. In Mathematics (Mathematics)

  • “+” means addition
  • “−” means subtraction
  • “x²” means x multiplied by itself

Instead of writing “x multiplied by x”, we write


2. In Music (Music)

  • Musical notes like 🎵 represent sound and rhythm
  • Example: ♩ ♪ ♫


3. In Science (Science)

  • “H₂O” represents water
  • “NaCl” represents salt


Why Notation is Important

  • Makes communication short and clear
  • Saves time and space
  • Helps in universal understanding


In One Line:

Notation is a symbolic way of representing ideas, numbers, or information.


What's Camel notation?

Camel notation (also called CamelCase notation) is a way of writing words without spaces, where each new word starts with a capital letter—just like the humps of a camel 🐫.


Types of Camel Notation

1. Lower Camel Case (camelCase)

  • First word starts with a small letter
  • Next words start with capital letters
  • Example:
    • firstName
    • userAge
    • totalPrice


2. Upper Camel Case (PascalCase)

  • Every word starts with a capital letter
  • 👉 Example:
    • FirstName
    • UserAge
    • TotalPrice


Where It’s Used

Camel notation is very common in Computer Programming:

  • Variable names
  • Function names
  • Class names


Why Use Camel Notation?

  • Makes code easy to read
  • Removes spaces (which aren’t allowed in variable names)
  • Keeps naming consistent


Simple Definition:

Camel notation is a naming style where multiple words are joined together, and each new word starts with a capital letter.


Why variable needs in programming?

Variables aren’t optional in programming—they’re essential. Without them, writing useful programs would be almost impossible.


What is a Variable?

In Computer Programming, a variable is a named container used to store data that can change during a program.


Why Variables Are Needed

1. Store Data

Variables let you save values (numbers, text, etc.) for later use.
Example: storing a user’s name or age


2. Reuse Values

Instead of writing the same value again and again, you store it once and reuse it.
Saves time and reduces errors


3. Make Programs Dynamic

Variables allow programs to change behavior based on input.

Example: different users get different results


4. Improve Readability

Using names like totalPrice or userName makes code easy to understand.


5. Perform Calculations

Variables are used in math operations.

Example:

total = price + tax


6. Manage Changing Values

Values can change during execution.
Example: score in a game increases


Simple Example

Without variable:

print(10 + 5)

With variable:

price = 10
tax = 5
print(price + tax)

This is clearer and reusable


One-Line Answer:

Variables are needed to store, reuse, and manage data in a program efficiently.

Comments

Popular posts from this blog

How to use reserved words in javascript?

Common Programming Notations