boolean型 (論理型)
JavaScriptのboolean型は、trueとfalseの論理値からなる型です。
boolean型リテラル
JavaScriptのboolean型リテラルはtrueまたはfalseを用いて次のように書きます。
tsconstisOk = true;constisPanda = false;
tsconstisOk = true;constisPanda = false;
boolean型の型注釈
TypeScriptのboolean型の型注釈はbooleanを使います。
tsconstisOk : boolean = true;
tsconstisOk : boolean = true;
TypeScriptには大文字で始まるBoolean型がありますが、これとbooleanは別の型です。