際際滷

際際滷Share a Scribd company logo
ECMAScript6 初
豆人溢念極M蛍 - 俾泌爽
part 2
2
Number
yield
tail call
promise
conclusion
ECMAScript6 初 part 2
3
Number
yield
tail call
promise
conclusion
ECMAScript6 初 part 2
4
Number.parseInt()
Number.parseFloat()
Number.isNaN()
Number.isFinite()
Number.isInteger()
Number.isSafeInteger()
Number.MAX_SAFE_INTEGER = 2?53
Number.MIN_SAFE_INTEGER = -2?53
Number
Number.parseInt()
Number.parseFloat()
Number.isNaN()
Number.isFinite()
Number.isInteger()
Number.isSafeInteger()
Number.MAX_SAFE_INTEGER = 2?53
Number.MIN_SAFE_INTEGER = -2?53
5
Number
Number.parseInt()
Number.parseFloat()
Number.isNaN()
Number.isFinite()
Number.isInteger()
Number.isSafeInteger()
Number.MAX_SAFE_INTEGER = 2?53
Number.MIN_SAFE_INTEGER = -2?53
6
Number
7
Number
yield
tail call
promise
conclusion
ECMAScript6 初 part 2
8
yield
9
yield
a b c d e
?bs
10
yield
a = 1 b c d e
?bs x = 1
y = 1
return 1
a = 1
11
yield
b c d e
?bs x = 1
y = 1
my turn!!
anyone
else?
a = 1
12
yield
b = 1 c d e
?bs x = 1
y = 2
ok´
a = 1
b = 1
step 1
step 2: return 1
13
yield
c = 2 d e
?bs x = 2
y = 3
a = 1
b = 1
c = 2return 2
my turn!!
14
yield
d = 3 e
?bs x = 3
y = 5
a = 1
b = 1
c = 2
d = 3
return 3
my turn!!
15
yield
e = 5
?bs x = 5
y = 8
return 5
a = 1
b = 1
c = 2
d = 3
e = 5
my turn!!
16
yield
?bs x = 5
y = 8
?nally no "next"´
a = 1
b = 1
c = 2
d = 3
e = 5
17
Number
yield
tail call
promise
conclusion
ECMAScript6 初 part 2
improve tail call
tail recursion
18
tail call
improve tail call
tail recursion
19
tail call
20
Number
yield
tail call
promise
conclusion
ECMAScript6 初 part 2
21
promise
promise
22
then(asyncThing4,
asyncRecovery2)
then(asyncThing3)
.catch(asyncRecovery1)
23
promise
24
promise
25
promise
26
promise
27
promise
28
promise
29
promisecan this be more readable?
30
promisecan this be more readable?
31
Number
yield
tail call
promise
conclusion
ECMAScript6 初 part 2
32
conclusion
more native functions
more structural
more readable
33
conclusion
thanks for listening

More Related Content

Es6 part2