- 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
推薦閱讀
- MATLAB計(jì)算機(jī)視覺經(jīng)典應(yīng)用
- 性能測試從零開始
- 品悟:Alias 2014+Showcase產(chǎn)品可視化造型與渲染
- Excel 2016入門與提高
- SOLIDWORKS Visualize 實(shí)例詳解(微視頻版)
- PS App UI設(shè)計(jì)從零開始學(xué)
- Creo 4.0從入門到精通
- Photoshop+Illustrator商業(yè)廣告設(shè)計(jì)從入門到精通(第2版)
- Small Business Server 2008 – Installation, Migration, and Configuration
- 中文版After Effects CC 2018 動漫、影視特效后期合成秘技
- Building Websites with VB.NET and DotNetNuke 4
- 中文版3ds Max 2022基礎(chǔ)教程
- 從零開始:Indesign CC 2019設(shè)計(jì)基礎(chǔ)+商業(yè)設(shè)計(jì)實(shí)戰(zhàn)
- 剪映真?zhèn)鳎?8招玩轉(zhuǎn)短視頻剪輯
- AutoCAD 2024室內(nèi)設(shè)計(jì)從入門到精通(升級版)