- 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"
推薦閱讀
- Learning PostgreSQL
- 架構不再難(全5冊)
- PHP基礎案例教程
- Mastering QGIS
- ASP.NET動態網頁設計教程(第三版)
- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- Mastering Android Game Development
- Getting Started with LLVM Core Libraries
- Android移動開發案例教程:基于Android Studio開發環境
- Java網絡編程實用精解
- C#教程
- Mastering Swift 4(Fourth Edition)
- Java程序設計基礎教程
- R for Data Science Cookbook
- 代碼揭秘