# Typescript 第一天入門 <h2>變數的宣告方式</h2> > var aaa123 = "999"; > 執行 tsc +檔名產生 js檔案 > tsc index.ts >  <h2>產生一個 typescript 設定檔</h2> > tsc --init >  <h2>設定 tsconfig.json</h2> 建立一個 src 資料夾,並將 index.ts 丟進去,將 tsconfig.json 檔改成下方的樣子。 > "rootDir": "./src", > "outDir": "./dist", > 執行 tsc ###### tags: `TypeScript`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up