Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 152 Bytes

js-1-4.md

File metadata and controls

9 lines (6 loc) · 152 Bytes

使用原生JS实现

(10).add(10).reduce(2).add(10) //28

?> 10 + 10 - 2 + 10 = 28

注意是原生js,原型链上Number.prototype