Think before you speak, read before you think.

node数据类型

➜  ~  node
> var a = 1;
undefined
> typeof a
'number'
> var b = {}
undefined
> typeof b
'object'
> var c = function() {};
undefined
> typeof c
'function'
> var d = '';
undefined
> typeof d
'string'

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *