見出し画像

データの種類

データ型

・文字列(string) : ”ありがとう” ”thank”

・数値(number)     : 4   4.2  -4

・undefined(アンデファイナ)  : 定義されていない

・Null(ナル) : 値がない

・真偽値(Boolean ブリアン): true false

・Object(オブジェクト) : 複雑なデータ


'use strict'
   
console.log(typeof "ありがとう");
console.log(typeof 4);
console.log(typeof true);
console.log(typeof undefined);
console.log(typeof null);

無題



この記事が気に入ったらサポートをしてみませんか?