有段時(shí)間沒有做前端頁面,最近復(fù)習(xí)了下前端的知識(shí)仗谆,同時(shí)發(fā)現(xiàn)大家都已經(jīng)進(jìn)入ES6開發(fā)的節(jié)奏了指巡,前端果然善變啊×タ澹看完es6藻雪,發(fā)現(xiàn)這貨跟java越來越像了,不是指名字狸吞。
http://es6katas.org/
Promise
easybasics
creation
chaining then()
the API
newpromise.catch()
Array
Array.from()
Array.of()
[].fill()
[].find()
[].findIndex()
[].entries()
[].keys()
[].values()
Class
easycreation
accessors
easystatic
easyextends
more extends
super in method
super in constructor
Destructuring
easyarray
easystring
easyobject
easydefaults
parameters
assign
Generator
creation
iterator
yield expressions
send value to a generator
send function to a generator
return
inside a generator function
Map
easyBasics
map.get()
map.set()
initialize
easymap.has()
Reflect
easyBasics
Reflect.apply()
Reflect.getPrototypeOf()
Reflect.construct()
Reflect.defineProperty()
Set
basics
set.add()
easyset.delete()
easythe API
easyset.clear()
Iterator
array
string
protocol
usage
Object literal
basics
computed properties
easygetter
easysetter
String
easystring.includes()
easystring.repeat(count)
easystring.startsWith()
easystring.endsWith()
Template strings
easybasics
easymultiline
tagged template strings
raw
property
Symbol
basics
Symbol.for()
Symbol.keyFor()
Arrow functions
easybasics
easyfunction binding
Block scope
easylet
declaration
easyconst
declaration
Rest operator
as parameter
with destructuring
Spread operator
with arrays
with strings
Default parameters
easyBasics
Modules
easyimport
statement
Number
easyNumber.isInteger()
Object
easyObject.is()
Unicode
in strings