JavaScript Tutorial

ASCII vs Unicode

ASCII represents 128 characters, while Unicode represents over 143,000 characters.

console.log('A'.charCodeAt(0)); // 65 in ASCII and Unicode
console.log('こんにちは'.charCodeAt(0)); // 12371 in Unicode (beyond ASCII range)

Questions & Answers Related

No Q&A available for this topic.