Skip to main content
1. Hello, World!

Your first Hew program

When you run this program, Hew calls main().

Each println() call writes its value on a separate line. Run the example to see how Hew prints a string, an integer and a floating-point number.

Try it: Change the message, add more println() calls, or print a number.

Recover from a diagnostic: Replace println(42) with println(answer) and run. Read the undefined-variable diagnostic and the line it points to. Add let answer = 42; before that call, then run again to restore the expected output.

Output