0
How do i modify the function so that it returns the variable result help?
function addNumbers(a: number, b: number) { let result = a+b; for(let i = 0; i<addNumbers; i++){ result+=stringToRepeat ; } } let sum = addnumbers(7,5);
1 Réponse
+ 1
return result;
at end of your function ^^