I need to do something like this:
Is something similar possible for UNICODE also?
Related subjects: Computing hardware and infrastructure. There are 95 printable ASCII characters, numbered 32 to 126. ASCII (American Standard Code for Information Interchange), generally pronounced [ˈæski], is a character encoding based on the English alphabet.
ASCII stands for American Standard Code for Information Interchange. ASCII is a numeric value that is given to different characters and symbols for computers to store and manipulate. For example, the ASCII value of the letter 'A' is 65. Resource: ASCII chart of all 127 characters in JavaScript.
The ASCII value of the lowercase alphabet is from 97 to 122. And, the ASCII value of the uppercase alphabet is from 65 to 90.
I'm not sure how exactly you want to print, but this will console.log
printable ascii
for(var i=32;i<127;++i) console.log(String.fromCharCode(i));
You can document.write
then if that's your intention. And if the environment is unicode, it should work for unicode as well, I believe.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With