Skip to content

Latest commit

 

History

History

1_hello_world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Hello World

This is an example of the simplest Elm application. We use JavaScript to embed it in a normal HTML page and it displays "Hello World".

The Main.elm file is our Elm code. To compile it to JavaScript, run the following command in the terminal:

elm make Main.elm --output elm.js.

Our code compiles down into plain JavaScript that will run in any browser. It's pulled in to the index.html file and embedded in a manner that will be familiar to anyone who's used React.