- Object/Oriented JavaScript
- Stoyan Stefanov
- 128字
- 2021-08-13 19:25:52
Primitive Data Types Recap
Let's quickly summarize what has been discussed so far:
- There are five primitive data types in JavaScript:
- number
- string
- boolean
- undefined
- null
- Everything that is not a primitive is an object
- The number data type can store positive and negative integers or floats, hexadecimal numbers, octal numbers, exponents, and the special numbers
NaN
,Infinity
, and–Infinity
- The string data type contains characters in quotes
- The only values of the boolean data type are
true
andfalse
- The only value of the null data type is the value
null
- The only value of the undefined data type is the value
undefined
- All values become
true
when converted to a boolean, with the exception of the six falsy values:- ""
null
undefined
- 0
NaN
false
推薦閱讀
- 中文版3ds Max 2012實用教程(第2版)
- Photoshop CC超級學習手冊
- 人臉識別算法與案例分析
- SolidWorks2014基礎實例教程
- ADempiere 3.6 Cookbook
- AI繪畫實戰:Midjourney從新手到高手
- Joomla! 1.5 Site Blueprints: LITE
- Maya 2020基礎教材
- Asterisk 1.4 : The Professional's Guide
- JBoss Tools 3 Developers Guide
- Puppet權威指南
- After Effects 2022從入門到精通
- Service Oriented Java Business Integration
- 好用,Excel數據處理高手
- Photoshop CS6淘寶美工完全實例教程(培訓教材版)