/// Edit the program, then press Run (Ctrl+Enter) - or Test, to run its @tests.functiongreeting(name:String):String{return#format"Hello, #{ name }!"}@mainfunctionmain(){for name in["world","Refingere"]{&stdout.writeText(#format"#{greeting(name)}\n")}}@testfunction`greeting greets by name`(){ifgreeting("you")≠"Hello, you!"then{error"expected 'Hello, you!', got"withgreeting("you")}}
Press Run to compile and run the program, or Test to run its @tests. It runs here in the browser, compiled to JavaScript by the same compiler as on the command line. A browser app, or a program drawing with Gpu, runs in the Page tab.