Here's Wikipedia's example 'Hello, World!' program: http://en.wikipedia.org/wiki/Brainfuck#Hello_World.21
<a href="#" onclick="helloWorld(); return false;">Hello World Example</a> console.log('Hello, world!');
to be the closest to universal one.Something like this would be more universal:
if (typeof console === 'object') {
console.log('Hello, World!');
} else if (typeof document === 'object') {
document.write('Hello, World!');
} else {
print('Hello, World!');
}
http://progopedia.com/implementation/rhino/Hello world!
ECHO 'Hello+World%0A'
RETURN 1
Which is identical to the opcodes produced by putting <?php
echo "Hello World"; ?> into a file. $ echo -n "<?php echo 'Hello World'; ?>" > hello.php
$ php -d vld.active=1 -d vld.execute=0 -f hello.php
line # * op fetch ext return operands
---------------------------------------------------------------------------------
1 0 > ECHO 'Hello+World'
1 > RETURN 1
$ echo -n "Hello World" > hello.php
$ php -d vld.active=1 -d vld.execute=0 -f hello.php
1 0 > ECHO 'Hello+World'
1 > RETURN 1
$ echo "<?php echo 'Hello World'; ?>" > hello.php
$ php -d vld.active=1 -d vld.execute=0 -f hello.php
1 0 > ECHO 'Hello+World'
2 1 > RETURN 1
$ echo "Hello World" > hello.php
$ php -d vld.active=1 -d vld.execute=0 -f hello.php
2 0 > ECHO 'Hello+World%0A'
1 > RETURN 1
PHP 5.3.10-1ubuntu3.6 / Zend Engine v2.3.0 / vld-0.11.2For example: http://rosettacode.org/wiki/Hello_World
Plus, I enjoyed learning the word "chrestomathy", which "from the Greek words khrestos, useful, and mathein, to know, is a collection of choice literary passages, used especially as an aid in learning a subject."
These examples just show some silly code, without any further information.
It would be really interesting to see how some languages deploy.
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.Otherwise, a fun read-through.
"Hello world"