深入 ES2015 默认参数January 22, 2017

S2015 为函数加入了方便的默认参数语法。

#TDZ#Understanding JavaScript#Function#Parameters#Arguments#Recommended

eat();

sleep();

code();

repeat();