2017-09-30 インクリメント var x = 0; ++x; console.log(x); // これは1 var x; // 変数宣言したのみ ++x; // 変数『x』の中身が数値じゃないので1が足せない console.log(x);