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 agoGilberto
9 days agoNicolette
21 days agoTwila
1 months agoTyra
2 months agoYaeko
2 months agoNickolas
2 months agoAmber
22 days agoMauricio
1 months agoCharolette
1 months agoMelissa
2 months agoBrigette
2 months agoBettyann
2 months agoNell
2 months ago