写一个求和的函数sum,达到下面的效果 // Should equal 15 sum(1, 2, 3, 4, 5); //Should equal 0 sum(5, 'abc', -5); //Should equal 4 sum(1, true, 'a', 'D', 1, 'F', 1, 'w'): 下面附上多种方法: function sum(){ var add = 0; for(var i = 0; i < arguments.length; i++){ if(!isNaN(Number…