async function main() { terminal.print("Hello, world!"); terminal.print("Please enter your name:"); var name = await terminal.readLine(); terminal.print("Hello, " + name + "."); for (var i = 0; i < 5; i++) { terminal.print(i.toString()); } } main().catch(terminal.print);