Member-only story
How to Print “Hello World” without Using Letters h, e, l, o in JavaScript
We all started learning programming by printing “Hello World”.
console.log("Hello World")
But now, we want to do something unusual: As the title mentioned, can you print “Hello World” without using letters like h, e, l, or o?
Isn’t that a funny challenge? Try it yourself!
Here are some solutions.
1. Get the letters from ASCII Code
ASCII stands for the “American Standard Code for Information Interchange”.
It was designed in the early 60’s, as a standard character set for computers and electronic devices.
ASCII is a 7-bit character set containing 128 characters.
Here is the digest:
So we can get the letter directly from ASCII instead of using letters.