- 追加された行はこの色です。
- 削除された行はこの色です。
* 型 [#p5f2886c]
** 型一覧 [#jb361f3c]
- string
- number
- boolean
- null
- undefined
- Object
-- function
-- Array
-- Date
-- RegExp
** typeofの戻り値 [#z50b9a8e]
** typeof演算子の返す値 [#z50b9a8e]
- string
- number
- boolean
- function
- object
- undefined
typeof [1, 2, 3] // => "object"
typeof parseInt("a") // => "number"
** instanceof演算子の挙動 [#b4791a98]
var obj = {};
var arr = [];
obj instanceof Object // => true
obj instanceof Array // => false
arr instanceof Object // => true
arr instanceof Array // => true