Initial commit: Elm tutorial for JavaScript developers
This tutorial includes: - 7 progressive lessons covering Elm fundamentals - Exercises with starter code - Solutions for exercises - Final project: Task Manager app with localStorage persistence Topics covered: - Basic syntax and types - Functions and functional programming concepts - The Elm Architecture (Model-View-Update) - Lists and Maybe types - HTTP requests and JSON decoding - Ports for JavaScript interop
This commit is contained in:
25
exercises/01-hello-world/src/Main.elm
Normal file
25
exercises/01-hello-world/src/Main.elm
Normal file
@@ -0,0 +1,25 @@
|
||||
module Main exposing (main)
|
||||
|
||||
{-| Exercise 1: Hello World
|
||||
|
||||
Complete the exercises below by modifying this file.
|
||||
|
||||
Exercise 1.1: Change the greeting to say "Hello, [Your Name]!"
|
||||
Exercise 1.2: Make the greeting ALL CAPS using String.toUpper
|
||||
Exercise 1.3: Add a second paragraph with your programming experience
|
||||
|
||||
Run with: elm reactor
|
||||
Then open http://localhost:8000/src/Main.elm
|
||||
|
||||
-}
|
||||
|
||||
import Html exposing (Html, div, h1, p, text)
|
||||
|
||||
|
||||
main : Html msg
|
||||
main =
|
||||
div []
|
||||
[ h1 [] [ text "Hello, Elm!" ]
|
||||
|
||||
-- Add more elements here for Exercise 1.3
|
||||
]
|
||||
Reference in New Issue
Block a user