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?

varは何回でも宣言できる

varは何回でも宣言できる
letは一回のみ宣言できる

varはブロック文の外側からアクセスできる

image.png
※ただし関数の場合は外側からアクセスできない

全てのvarで宣言された変数は”巻き上げ”される

ただし初期値の値は入らない。
image.png

0
0
0

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?