0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

TypeScriptとPythonの違い

Posted at

PythonとType Scriptって何が違うの?

結論

  • Pythonは動的型付け言語
    •  変数を宣言するときに型を指定しなくても問題なし
    •  ランタイム時に型を指定する
  • Type Scriptは静的型け言語
    • 変数を宣言する際に方を明示するのが一般的
    • コンパイル時に型エラーを検出できる
      • const は再代入不可、letは再代入可

  • Python
    index=len(arr)-1
  • TypeScript
    let index:number=len(arr)-1;
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?