1. Hello, World!
Loading editorβ¦
Your first Hew program
Every Hew program starts with a fn main() function β the entry point.
println() prints a value followed by a newline. It automatically detects the type β strings, integers, and floats all work.
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