A developer needs to test this function:
01const sum3 = (arr) => (
02if (!arr.length) return 0,
03if (arr.length === 1) return arr[0],
04if (arr.length === 2) return arr[0]+ arr[1],
05 return arr[0] + arr[1] + arr[2],
06 );
Which two assert statements are valid tests for the function?
Choose 2 answers
Mammie
2 months agoMarta
14 days agoGilberto
25 days agoNicolette
1 months agoTwila
2 months agoTyra
2 months agoYaeko
2 months agoNickolas
3 months agoAmber
1 months agoMauricio
2 months agoCharolette
2 months agoMelissa
2 months agoBrigette
3 months agoBettyann
3 months agoNell
3 months ago