This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11196|Reply: 0

[TypeScript] Getting started guide: Typescrip{filter}t

[Copy link]
Posted on 7/2/2018 9:59:58 AM | | | |
Typescrip{filter}t is a free and open-source programming language developed by Microsoft, which is a superset of Javascrip{filter}t.

First of all, our computer needs to install node.js, not to mention how to install it.

Node.js

The command-line Typescrip{filter}t compiler can be installed using Node.js package.






Check out the Typescrip{filter}t version

C:\project\Typescrip{过滤}t>tsc -v
Version 2.9.2


Build your first Typescrip{filter}t file

Let's create a new one under the C:\project\Typescrip{filter}t directorytest.tsfile, open this file with VS code, and of course you can also open it with other editors, such as: Notepad, Notepad++, etc

test.ts code

Compile code

On the command line, run the Typescrip{filter}t compiler:


The output is a test.js file, and you can run this Javascrip{filter}t application written using Typescrip{filter}t!

test.js Code:







Previous:【APP cracking】Tencent Legu, 360 reinforcement one-click shelling
Next:js.map file meaning (turn)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com