标签:har 语言 ace delete def var 字符 nat 声明
JavaScript的关键字有:
break case catch continue default delete do else finally for function if in instanceof new return switch this throw try typeof var void while with
JavaScript的保留字有:
abstract boolean byte char class const debugger double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile
变量是用来存储数据的,JavaScript定义变量十分简单,只需要使用var关键字和变量名即可。
var message;
上面代码声明的变量message可以存储任何类型的值。
我们还可以使用一条语句定于多个变量:
var message="hi", foo=false, score=80;
标签:har 语言 ace delete def var 字符 nat 声明
原文地址:https://www.cnblogs.com/bigbosscyb/p/11320297.html