TypeScript
构建TypeScript环境
npm install -g typescriptHello World
$ echo 'console.log("hello world")' > helloworld.ts
$ tsc helloworld.ts
$ ll
total 16
-rw-r--r-- 1 yangsx staff 28B 9 20 12:22 helloworld.js # 编译为了js
-rw-r--r-- 1 yangsx staff 27B 9 20 12:21 helloworld.ts
# 执行js脚本
$ node helloworld.js
hello world最后更新于