Ocaml

Other Ocaml solutions.
let hello = "Hello, World!"

Prolog

Other Prolog solutions.
% Please visit https://exercism.io/tracks/prolog/installation
% for instructions on setting up prolog.
% Visit https://exercism.io/tracks/prolog/tests
% for help running the tests for prolog exercises.

% Replace the goal below with
% your implementation.

hello_world('Hello World!').

Racket

Other Racket solutions.
#lang racket

(define (hello) "Hello, World!")


(provide hello)

Nim

Other Nim solutions.
proc hello*: string =
  "Hello, World!"

Python

Other Python solutions.
def hello():
    return "Hello, World!"

Clojure

Other Clojure solutions.
(ns hello-world)

(defn hello [] "Hello, World!")

Elixir

Other Elixir solutions.
defmodule HelloWorld do
  @doc """
  Simply returns "Hello, World!"
  """
  @spec hello :: String.t()
  def hello do
    "Hello, World!"
  end
end

Rust

Other Rust solutions.
// The &'static here means the return type has a static lifetime.
// This is a Rust feature that you don't need to worry about now.
pub fn hello() -> &'static str {
    "Hello, World!"
}

Elm

Other Elm solutions.
module HelloWorld exposing (helloWorld)


helloWorld : String
helloWorld =
    "Hello, World!"

Haskell

Other Haskell solutions.
module HelloWorld
  ( hello
  ) where

hello :: String
hello = "Hello, World!"

Roc

Other Roc solutions.
module [hello]

hello : Str
hello = "Hello, World!"

Javascript

Other Javascript solutions.
//
// This is only a SKELETON file for the 'Hello World' exercise. It's been provided as a
// convenience to get you started writing code faster.
//

export function hello() {
  return "Hello, World!";
}

C

Other C solutions.
#include "hello_world.h"

const char *hello(void)
{
   return "Hello, World!";
}