ASCII means American Standard Code for Information Interchange.
It is a system that changes letters, numbers, and symbols into numbers, so computers can understand them.
Examples:
- A → 65
- a → 97
- 0 → 48
- @ → 64
Computers cannot understand text directly
They understand only numbers
So, ASCII helps convert characters into numbers.
Why was ASCII introduced?
Before ASCII, each computer had its own way of storing characters
This created problems when sharing data between computers.
Problems before ASCII:
- Different systems used different codes
- Same character had different meanings
- Data sharing was difficult
Solution: ASCII
ASCII was introduced to:
- Standardize characters
- Same number for same character everywhere
- Make data sharing easy
- Files can be opened in different systems
- Improve communication
- Helpful in early internet and networking
ASCII range = 0 to 127
- 0–31 → Control characters
- 32–126 → Printable characters
- 127 → Delete
Printable Characters (32–126)
These are visible characters:
- 32 → Space
- 48–57 → Numbers (0–9)
- 65–90 → Uppercase letters (A–Z)
- 97–122 → Lowercase letters (a–z)
- Others → Symbols (!, @, #, etc.)
ASCII PROGRAM :
name="silambu9391a@gmail.com"
index=0
while (index < name.length) {
console.log(name[index]+ " = " + name.charCodeAt(index));
index+=1
}
OUTPUT :

Top comments (0)