`
magnesium
  • 浏览: 29216 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

从头开始学JavaScript(第二天)

阅读更多
今天是第二天,我们来看看学了点什么。

1.JavaScript有3种基本数据类型:1)number    2)boolean     3)text

2.alert boxes only display text, not numbers. So numbers are converted to text 

  behind the scenes before they’re displayed

3.var

4.标识符规则:1)An identifier must be at least one character in length

              2)The first character in an identifier must be a letter, an
                underscore (_), or a dollar sign ($).

              3)Each character after the first character can be a letter,
                 an underscore (_), a dollar sign ($), or a number.

              4)Spaces and special characters other than _ and $ are
                 not allowed in any part of an identifier.

5.变量名规则:1)数字的变量名全部大写

              2)其余都用low-camel方式

6.NaN

7.parseInt() and parseFloat()

8.IE 不支持const关键字

-----------------108------------------
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics