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 復習 式と文

Posted at

javascriptにおける式を文

この話題はすでにたくさんの記事、ブログはありますが、私の復習のためにまとめました。

値を生成するもの。必ず何かの「値」になる。

3 + 4
"文字列"
[]

何かを実行するもの。変数宣言やif文など

let x = 7;
if(x > 1){}
return x;

式文

式を文として使う。代入式や単純な関数の呼び出し(戻り値を使わない)など。

x = 7;
function();

※文は式になれない。

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?