Loading Loft runtime…
Loft Playground
← Back
▶ Run
Examples
Docs
Source
// A Loft script: no `fn main`, no boilerplate — just statements, top to bottom. // Loft is statically typed and compiles to native + WASM. println("Hello from Loft!") for i in 1..11 { if i % 3 == 0 and i % 5 == 0 { println("FizzBuzz"); } else if i % 3 == 0 { println("Fizz"); } else if i % 5 == 0 { println("Buzz"); } else { println("{i}"); } }
Output
Diagnostics
Ready
Ctrl+Enter to run