I am almost 100% sure that when you start programming in a language, you look for an example like the famous “Hello, world!” In this article, I compile how to do it in 31different programming languages that, for one reason or another, I have known or used in my life and a short description with some useful or curious data.

1. Java

It is a general-purpose, object-oriented programming language based on classes.

  • First appeared: 1995; 25 years ago. 😱
  • Last stable release: Java SE 15[2]. 15; September 2020; Recently.
import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
 public static void main (String[] args) throws java.lang.Exception
 {
  System.out.println("Hello, world!");
 }
}

2. JavaScript

JavaScript or “Js” is a programming language that conforms to the ECMAScript specification. JavaScript is high-level, often just-in-time compiled, and multi-paradigm.

  • First appeared: 1995; 25 years ago. 😱
  • Last Stable release: 2.5.1. January 2020; Recently.
console.log("Hello world!");

3. CoffeeScript

CoffeeScript is a programming language inspired by Ruby that compiles to JavaScript.

  • First appeared: 2009; 11 years ago.
  • Last stable release: 2.5.1 ;January 2020; Recently.
console.log 'Hello, world'

4. HTML

Hypertext Markup Language is the standard markup language for documents designed to be displayed in a web browser.

Hello world!
  • First appeared: 1993; 27 years ago. 😱
  • Last stable release: Living Standard, 2020.

5. Swift

Swift is a multi-paradigm, general-purpose, and compiled programming language developed by Apple with the open-source community.

println("Hello, world!")
  • First appeared: 2014; 6 years ago.
  • Last stable release: 5.3; September 2020. Recently.

#programming-languages #software-development #programming #coding #hello-world

“Hello, World!” in Different Programming Languages and Times
1.35 GEEK