HackerRank Problem solving in JavaScript (Simple Array Sum !)

preview_player
Показать описание
It's time to go with Competitive Coding through one of the best coding platform HackerRank

All The Best for the Coding Interviews
Рекомендации по теме
Комментарии
Автор

anyone please help : is we also need to write Constrain condition in the solution

Dhirajkumar-fbto
Автор

function simpleArraySum(ar) {
let sum = ar.reduce(myFunction);

function myFunction(total, value) {
return total + value;
}
return sum
}

adityamarzuk
visit shbcf.ru