从头开始学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------------------
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值