SOURCE

function helloWorld(msg:string):string{
    return 'hello'+msg;
}
let msg='my first typescript';
document.body.innerHTML=helloWorld(msg);
console 命令行工具 X clear

                    
>
console