- 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"
推薦閱讀
- HTML5移動Web開發技術
- 自制編譯器
- 大學計算機基礎實驗教程
- Mastering Kotlin
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- Spring Boot進階:原理、實戰與面試題分析
- bbPress Complete
- Salesforce Reporting and Dashboards
- Machine Learning in Java
- OpenCV 3計算機視覺:Python語言實現(原書第2版)
- 貫通Tomcat開發
- scikit-learn Cookbook(Second Edition)
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition
- Learning Alfresco Web Scripts
- Testing Practitioner Handbook