Skip to content

hello

Hello, world. main may also return an integer, the exit status.

Terminal window
jihoo run examples/hello.jh
examples/hello.jh
fn greet(name: str) -> String {
"Hello, " + name + "!"
}
fn main() {
println(greet("jihoo"))
}

View on GitHub