关键字∶是指JS本身已经使用了的字,不能再用它们充当变量名、方法名。
包括: 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等。
心
保留字
保留字∶实际上就是预留的“关键字”,意思是现在虽然还不是关键字,但是未来可能会成为关键字,同样不能使用它们当变量名或方法名。
包括: boolean、byte、char、class、const、debugger、double、enum、export、
extends.
fimal、 float、goto、implements、import、int、interface、long、mative、package、private、protected、public、short、statil、super、synchronized、throws.
transient、
volatile等。