- Object-Oriented JavaScript(Second Edition)
- Stoyan Stefanov Kumar Chetan Sharma
- 57字
- 2021-08-13 16:19:28
Booleans
There are only two values that belong to the Boolean data type: the values true
and false
, used without quotes:
> var b = true; > typeof b; "boolean" > var b = false; > typeof b; "boolean"
If you quote true
or false
, they become strings:
> var b = "true";
> typeof b;
"string"
推薦閱讀
- Getting Started with Gulp(Second Edition)
- Java 9 Concurrency Cookbook(Second Edition)
- PHP 編程從入門到實踐
- Swift 3 New Features
- Magento 1.8 Development Cookbook
- Bootstrap 4:Responsive Web Design
- ASP.NET 3.5程序設計與項目實踐
- Unity UI Cookbook
- 軟件測試實用教程
- 鴻蒙OS應用編程實戰
- Python Machine Learning Blueprints:Intuitive data projects you can relate to
- AI自動化測試:技術原理、平臺搭建與工程實踐
- Building a Media Center with Raspberry Pi
- Ionic3與CodePush初探:支持跨平臺與熱更新的App開發技術
- ASP.NET jQuery Cookbook(Second Edition)