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?

JavaScript TypeScript の文法 ?

0
Posted at
書き方 名前 意味 JS / TS
age?: number オプショナルプロパティ age はあってもなくてもOK TS
user?.name オプショナルチェイニング user がなければエラーにしない JS・TS
a ?? b Null合体演算子 a が null / undefined なら b を使う JS・TS
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?