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.
It is a general-purpose, object-oriented programming language based on classes.
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!");
}
}
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.
console.log("Hello world!");
CoffeeScript is a programming language inspired by Ruby that compiles to JavaScript.
console.log 'Hello, world'
Hypertext Markup Language is the standard markup language for documents designed to be displayed in a web browser.
Hello world!
Swift is a multi-paradigm, general-purpose, and compiled programming language developed by Apple with the open-source community.
println("Hello, world!")
#programming-languages #software-development #programming #coding #hello-world