欢迎大家前往挑战,第一遍做我是很懵逼的,题目很多虽然很偏,也不具什么实用价值,但多学学总是好,看看你能做对多少。
随便看看几个题目的画风:(说出输出或返回值)
- var val = ‘smtg’;
console.log(‘Value is ’ + (val === ‘smtg’) ? ‘Something’ : ‘Nothing’); - [ [3,2,1].reduce(Math.pow), [].reduce(Math.pow) ]
- [“1”, “2”, “3”].map(parseInt)
传送门:http://javascript-puzzlers.herokuapp.com/?utm_source=ourjs.com