鍍金池/ 問答/HTML/ ES6關(guān)鍵字,歡迎來補充

ES6關(guān)鍵字,歡迎來補充

ES6關(guān)鍵字:

super class import export extends let const yield
回答
編輯回答
小曖昧

ECMAScript 1

do
if
in
for
new
try
var
case
else
enum
null
this
true
void
with
break
catch
class
const
false
super
throw
while
delete
export
import
return
switch
typeof
default
extends
finally
continue
debugger
function

ECMAScript 2

do
if
in
for
int
new
try
var
byte
case
char
else
enum
goto
long
null
this
true
void
with
break
catch
class
const
false
final
float
short
super
throw
while
delete
double
export
import
native
public
return
static
switch
throws
typeof
boolean
default
extends
finally
package
private
abstract
continue
debugger
function
volatile
interface
protected
transient
implements
instanceof
synchronized

ECMAScript 3

同 ECMAScript 2

ECMAScript 5

ECMASCript 5 / 5.1刪除了int,byte,char,goto,long,final,float,short,double,native,throws,boolean,abstract,volatile,transient和synchronized。它增加了let和yield。

do
if
in
for
let
new
try
var
case
else
enum
eval
null
this
true
void
with
break
catch
class
const
false
super
throw
while
yield
delete
export
import
public
return
static
switch
typeof
default
extends
finally
package
private

ECMAScript 6

do
if
in
for
let
new
try
var
case
else
enum
eval
null
this
true
void
with
await
break
catch
class
const
false
super
throw
while
yield
delete
export
import
public
return
static
switch
typeof
default
extends
finally
package
private
continue
debugger
function
arguments
interface
protected
implements
instanceof
continue
debugger
function
arguments
interface
protected
implements
instanceof
static
switch
throws
typeof
boolean
default
extends
finally
package
private
abstract
continue
debugger
function
volatile
interface
protected
transient
implements
instanceof
synchronized
2017年9月9日 05:58