JavaScript基本数据类型和Date()构造函数
JavaScript就是网页特效原理,也就是修改样式效果,是使用Unicode字符集编写的语言。
1、JavaScript区分大小写
关键字、变量、函数名和所有标识符(identifier)都必须采取一样的大小写形式
例如:“if"只能写成if,不能是"IF"或"If”
2、关键字与保留字(关键字与保留字不能作为标识符)如:
break case catch continue debugger
delete do else false finally for
function if in instanceof new null
return switch this throw true try
typeof var void while with default
3、基本数据类型:
原始类型:number(数字)、string(字符串)、Boolean(布尔)
特殊原始值:null(空)、undefined(未定义)
对象类型:集合、数组、函数。其中数组是一种代带编号的有序集合
4、算术运算符