DEV Community

Simon Foster
Simon Foster

Posted on • Originally published at funkysi1701.com on

Hello World!

The first program anyone writes in a new language is often really simple and just displays the text “Hello World!”, below are a few examples from languages I have knowledge of.

Console.WriteLine("Hello, world!");


<html>
<head></head>
<body>
<p>Hello, world!</p>
</body>
</html>


php echo 'Hello, world!'; ?>


MsgBox("Hello, World!")


SELECT 'Hello, world!'

Enter fullscreen mode Exit fullscreen mode

Or maybe

SELECT * FROM table WHERE name = 'Hello World!'


'Hello, world!'


console.log('Hello, world!');


PRINT "Hello, world!"

Enter fullscreen mode Exit fullscreen mode

Turns out I know quite a few programming languages. And yes there have been times where I need to stop and think about which language I am writing in.

Top comments (0)