ASCII (American Standard Code for Information Interchange) is one of the earliest character encoding systems. It assigns numeric values to characters so computers can process text.
Example:
A → 65
a → 97
0 → 48
Why is ASCII Used?
ASCII is used for:
- Representing basic English characters
- Simple text processing
- Early computer systems
Limitations of ASCII:
- Supports only 128 characters
- Cannot represent other languages like Tamil, Hindi, or Chinese
What is Unicode?
Unicode is a modern character encoding system that supports characters from all languages.
Example:
- A → U+0041
- ₹ → U+20B9
- அ → U+0B85
Why is Unicode Used?
Unicode is used for:
- Supporting multiple languages
- Handling global applications and websites
- Representing symbols and emojis
Why Do We Need Both?
- ASCII is simple and efficient for basic English text.
- Unicode is necessary for modern applications that require multiple languages and symbols.
- In fact, Unicode includes ASCII as a subset, meaning all ASCII characters are also part of Unicode.
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)