Javascript的数据类型

  在JavaScript中,有三种住数据类型、两种复合数据类型和两种特殊数据类型。

1.主数据类型(基元数据类型)

  • 字符串

   String数据类型:

    字符串值是一个由零个或者多个Unicode字符组成的链表。使用字符串数据类型表示JavaScript中的文本。在脚本中包含字符串,方法是使用单引号或者双引号将其括起来。被单引号引起的字符串内可以包含双引号,而被双引号引起的字符串可以包括单引号。z在JavaScript中没有表示单个字符的类型。若要表示JavaScript中的单个字符,可以创建仅由一个字符组成的字符串。包含字符("")的字符串是空(零长度)字符串。在JavaScript中可以包含字符串中的转义序列,用来创建不能直接键入的字符串(转义符:\)。

例如:    

var str ="hello 'word' ";
var str1 ='hello "word"';
  • 数字

  Number数据类型:

    在JavaScript中,整数值和浮点值之间没有区别:JavaScript数字可以是两种类型中的任意一种,在内部JavaScript作为浮点数表示所有的数字。

  注意:

    在JavaScript包含具有特殊值的数字:  

      ●NaN(不是数字)。当对不适当的数据(例如字符串或者未定义值)执行数学运算时使用该值。

      ●正无穷大,当一个正数太大以至于在JavaScript中无法表示时,可使用该值。

      ●负无穷大。当一个负数太大以至于在JavaScript中无法表示时,可使用该值。

      ●正0和负0.JavaScript区分正零和负零。

  • Boolean

   虽然字符串和数字类型实际上可以有无限多个不同的值,但是布尔值数据类型只能有两个值。他们是true和false。     

2.复合数据类型(引用数据类型)

  • Object
  • 数组

3.特定数据类型(特殊数据类型)

  • Null

    null数据类型在JavaScript中仅具有一个值:null。null关键字不能用作函数或者变量名称。包含null的变量不包含有效的数字、字符串、布尔值、数组或者对象。通过为变量赋值null值可以清除变量的内容,但是不删除变量。在JavaScript中的typeof运算符将null值报告为Object类型而不是null类型。

  • 未定义(undefined)

    如果使用的对象属性不存在或者使用的是已声明但是未赋值的变量,返回的是undefined值。您可以通过将变量与undefined进行比较来确定变量是否存在也可以通过将变量类型与字符串“undefined”进行比较来确定。

总结:

  在JavaScript中,null是一种特殊的object类型,NaN是一种特殊的number类型,未定义的值或者定义未赋值的变量为undefined。

  aaarticlea/png;base64,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SgDBECUIYIAShDhACUIUIAyhAhAGWIEIAyRAhAGSIEoAwRAlCGCAEoQ4QAlCFCAMoQIQBl/w8NK6/XVXSkMAAAAABJRU5ErkJggg==" alt="" />

  null是关键字;undefined是Global对象的一个属性。

  null是对象(空对象,没有任何属性和方法);undefined是undefined类型的值。

  null等值(==)于undefined,但是null不全等(===)于undefined。

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAARsAAACYCAIAAABbHNq0AAAVv0lEQVR4nO3dW1BT974H8Lzsx/PSh/3Q2dM9w4N1OrWbPdPB00K4K7IrND29nLowoqNFQAkBDRoQxkZAgyKxFKQiHGmKGkZAYdemcM5uET1mA+IICGgSjNwvCUm4JCuErHUe/ofVtXNjBReG6u8zzJplsrIucX3z/6//uvw5O2JiYnfsYD6Uy+XzAAAPOLExMTtiYpgPIVEAeMGJ2b59R0wM86FcLu8CAHjA8SlOMdu3y+VyEgDgASdm+3af/iBRAHjBidm+ffu2bcyHkCgAvOBs37bNpz9IFABeQKIAYBNnW3T0tm3bmA8hUQB4wdkWHe3THyQKAC840VFR26KjmQ8ZJmpoaKiysjI7O3vfvn3Z2dmVlZVDQ0PrvTFgPSwtLalUqh9//LHpX/3444/3799fWlry9wpuLJzo6OjoqCjmw1UT5XA46uvrd+/ejWEYhmH0kfr6eofDwXDNMMZe+EsA3ty/f//+/fsGd9Bb/l7BjYUTFRkZHRXFfLhqourr69GOXlVVpdFoHA7HxMTEjRs3+Hw+hmH19fUM1wzDsJycnGte5eTkbKhEPXr0KC4u7sSJEziO+3tdWNPU1DTtWVNTE31iHMelUinaAbKzs588eeKv1UZMJpNUKjWZTC9tiZyoqKioyEjmQ++JGhoaogqlI0eO0LdkYGAgISFh9+7dDKt/J06c2Ldvn5eJ1Wp1YmKiWCxmvrXe9ff3V1ZWrvnjOI6fOnXq0aNHbK0PK06ePBnn4uTJk8znUFdXNzw8PDIy4nZYV1dHnxjH8dLSUp1ORxBET09PQUGB2Wxme5t84IdERUZGRkVGMh96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QAXvwfg+e5AyIAXXgAAAAASUVORK5CYII=" alt="" />

  在运算时,null于undefined都可以被类型转换为false,但是他们不等值于false。

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWEAAADQCAIAAABZfEfkAAAeRElEQVR4nO3d+1NT16IH8PwD95f+7Exn8gMn06lz8pPemXDv9HB7htKe6uH22vbWQp3qKcTWGIr4zh0SeUWK3IoQ66mKYC8ai48CInil2mqbEQOj0IOY8H6K2TsEwia7O9nr/rBud3fz2AQawNrvZ/zFsPbaa6Hrm7XW3tlRJScn63S62tpaAgAQQaXT6ZARABCLKjU1NTU1FRkBAFGpKGQEAESFjAAAJcgIAFCCjFg0URQvXrzY1ta2YmecmZkpKCh4/Pjxip0RQBJvRvh8vu+//35l2rQgjuOMRqNarU5PT2cYZlHHMgyTnp6uVquNRiPHcUs4+507d/bt2+f3++V1vv/++y6Xa1H1RO2Fw+FQq9VqtdputyufFGBlxJsRHR0dFRUVLS0toVBoZVq2IIZhjEbjYjOCcrlcJpNpCRnh9Xp37do1ODgY9uK2bdsWmxFU1F7Y7fawjBAEoby8vKmpaQmnAPg1FrHWcDqdFRUVDQ0NgiAol2RZ1mKxaDQa6f3Q7/cXFRVpNJp169adO3eO1lBZWVlbW5uWlqbVaq9cuUIIEUWxsbExJSVF/u4a9VgSMbrm5+dtNptWq9XpdPX19cqNDMsIj8djMBiSkpJSUlJu3LghiiIhpL29PS0tjb6rJycn0wi4efNmaWkpLSDhOM5kMkkZ4XK5ioqKaJu3bdvm8XgIIVar1eFwRDY7zowghPT09OzatQtTCVhhi9uP6O7uPnbsWH19Pc/zscoIglBYWFhdXT0/P09fEUXRZrPZbDae5ycnJ7Oysu7du0cIsVqtBoPhyZMnXV1d2dnZPp+PYRi9Xj88PCzVFutYEjG6Ghoazp8/HwqFvF5vbm7ugwcPFDoizwie5w8ePHjlypVQKOR2uzMyMgYHB+nU4IcffuB5/vDhw9euXaMHlpWVRe5ERGZEamrqtWvXeJ63WCxXr14licgIn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OC9QRztgzJf0oIuXpxur6WDYWIlw3u3z7S3YlPPQKsnIXXGovNCCpsHuGZEvZmD7/43IM1qs6wHQp5yUBAPGKe+PA/B7/7enaeEwkhPC/m54zKQwcLE4CVFNd+xK9fa5w4MlVumQgExHlOLMgbi5URhJBQiIwM8ieOTL39srv/UWB+XrTkjv3jPh6vArA6lmvPMmzkVxRNnql68uOP4v82+ja95FLICEoQiPXAOH39fz73lOwfn/El/pn9ALCg5br2Gbln+da/uV587oH549G8bcM0I8otE9IKgi5A5FubR/In5vwhQsicP3Qkf2L9893yjUwAWBm4hwoAlCAjAEAJMgIAlKi2b9++fft2ZAQARKUyGAwGg6G2tnYaACAC1hoAoAQZAQBKkBEAoCTxGaFWqxNVFQCsOmQEAChBRgCAkngzYtwbsl0PiOLCNSIjAJ4l8WbE2dv8uoM+k50LLvTxS2QEwLNEZTQajUZjPGuNM98E1h305dTOBX5UKoaMAHiWqLKzs7Ozs+Pcj7jUzv+zyffB3/3+QMxVBzIC4FmyuD1LZATA780iMgJrDYDfIexZAoASXPsEACW4hwoAlCAjAEAJMgIAlKj0er1er8dnwwEgKtXOnTt37tyJjACAqP4P6+SzQt3LjigAAAAASUVORK5CYII=" alt="" />

JavaScript的undefined与null、NaN的区别的更多相关文章

  1. Javascript 中的非空判断 undefined,null, NaN的区别

    JS 数据类型 在介绍这三个之间的差别之前, 先来看一下JS  的数据类型. 在 Java ,C这样的语言中, 使用一个变量之前,需要先定义这个变量并指定它的数据类型,是整型,字符串型,.... 但是 ...

  2. (转载)Javascript 中的非空判断 undefined,null, NaN的区别

    原文地址:https://blog.csdn.net/oscar999/article/details/9353713 在介绍这三个之间的差别之前, 先来看一下JS  的数据类型. 在 Java ,C ...

  3. js判断undefined类型,undefined,null,NaN的区别

    js判断undefined类型 今天使用showModalDialog打开页面,返回值时.当打开的页面点击关闭按钮或直接点浏览器上的关闭则返回值是undefined   所以自作聪明判断       ...

  4. JavaScript 中undefined,null,NaN的区别

    1.类型分析: js中的数据类型有undefined,boolean,number,string,object等5种,前4种为原始类型,第5种为引用类型.var a1;var a2 = true;va ...

  5. JavaScript中undefined与null的区别

    通常情况下, 当我们试图访问某个不存在的或者没有赋值的变量时,就会得到一个undefined值.Javascript会自动将声明是没有进行初始化的变量设为undifined. 如果一个变量根本不存在会 ...

  6. 【转】JavaScript中undefined与null的区别

    通常情况下, 当我们试图访问某个不存在的或者没有赋值的变量时,就会得到一个undefined值.Javascript会自动将声明是没有进行初始化的变量设为undifined. 如果一个变量根本不存在会 ...

  7. js中undefined,null,NaN的区别

    1.类型分析: js中的数据类型有undefined,boolean,number,string,object等5种,前4种为原始类型,第5种为引用类型.var a1;var a2 = true;va ...

  8. 【前端】javascript判断undefined、null、NaN;字符串包含等

    JS中判断null.undefined与NaN的方法 这篇文章主要介绍了JS中判断null.undefined与NaN的方法,需要的朋友可以参考下 . . 写了个 str ="s" ...

  9. 快速弄清JavaScript中undefined和null的区别

    ES6的7大数据类型里面有这俩玩意:undefined和null,让接触不深的学习者常常产生混淆,这俩玩意的区别在哪呢? 字面意思上来看,undefined是未(被我们)阐明的,未说明的,null则意 ...

  10. javascript类型系统——undefined和null

    × 目录 [1]原因 [2]undefined [3]null 前面的话 一般的程序语言,表示空的只有null,但javascript的设计者Brendan Eich却设计了一个undefined,这 ...

随机推荐

  1. asp.net core mvc视频A:笔记3-3.Model与强类型视图

    创建项目,添加TestController 定义一个类(Model),并赋值 建立视图页面 注意:Model是一个特定的对象,取决于传递过来的参数 运行结果 到现在为止,依然没有改变动态类型,需要转换 ...

  2. hdu5399

    题意:给你m行个长度为 n的序列或者-1 -1代表这一行的序列不确定,然后让你找出有多少种情况满足对于每一个i 有f1(f2(⋯fm(i)))=i: 思路:分为三种情况:1,每行序列中有反复数输出0: ...

  3. STM32F4先设置寄存器还是先使能时钟

    http://zhidao.baidu.com/link?url=gdVNuIgLOJcV37QzbCx0IrFip5pskiPQDWpoZayr_xBEe120p4d_iWtrfDl1d4tSFaH ...

  4. 让 webpack 加载 Source Map

    在浏览器中运行的 JavaScript 代码都是编译器输出的代码,这些代码的可读性很差.如果在开发过程中遇到一个不知道原因的 Bug,则你可能需要通过断点调试去找出问题. 在编译器输出的代码上进行断点 ...

  5. Hibernate二次学习二----------session.flush、session.doWork

    目录 1. session 2. session.flush 3. session.doWork 4. 完整代码 5. 总结 © 版权声明:本文为博主原创文章,转载请注明出处 1. session H ...

  6. DDD架构Sample

    http://dddsamplenet.codeplex.com/SourceControl/latest#DDDSample-Vanilla/Application/IBookingService. ...

  7. .net验证控件,导航控件

    一.客户端验证(用户体验,减少服务器端压力) 二.服务器端验证(防止恶意攻击,客户端js很容易被绕过) 验证控件:RequiredFieldValidator:字段必填:RangeValidator: ...

  8. Monkey源代码分析之事件源

    上一篇文章<Monkey源代码分析之执行流程>给出了monkey执行的整个流程.让我们有一个概貌,那么往后的文章我们会尝试进一步的阐述相关的一些知识点. 这里先把整个monkey类的结构图 ...

  9. bzoj4069【APIO2015】巴厘岛的雕塑

    4069: [Apio2015]巴厘岛的雕塑 Time Limit: 10 Sec  Memory Limit: 64 MB Submit: 192  Solved: 89 [Submit][Stat ...

  10. struts2一个实例中遇到的问题

    今天实现了一个登录功能的Struts2小程序. 期间遇到了许多问题,记忆犹新的是 (1)新版本的tomcat9和eclipse Neon Release (4.6.0) 发生了冲突,启动服务器的时候老 ...