Demo

Optimized TypeScript

type Str = [number, string];
const __Builtins$stringConcat = ([, a]: Str, [, b]: Str): Str => [1, a + b];
const __Builtins$println = ([, line]: Str): number => { console.log(line); return 0; };
const __Builtins$stringToInt = ([, v]: Str): number => parseInt(v, 10);
const __Builtins$intToString = (v: number): Str => [1, String(v)];
const __Builtins$panic = ([, v]: Str): number => { throw Error(v); };
const _builtin_free = (v: any): number => { v.length = 0; return 0 };
const GLOBAL_STRING_0: Str = [0, "Hello World!"];
function _Demo_Main$main(): number {
__Builtins$println(GLOBAL_STRING_0);
return 0;
}
_Demo_Main$main();

Program Standard Out

Hello World!