Question: Need help on this debugging Debugging multiplesOfSeven This problem is worth 4 points. You may receive partial credit. function multiplesofseven(num) { let arr =[]; for
Debugging multiplesOfSeven This problem is worth 4 points. You may receive partial credit. function multiplesofseven(num) \{ let arr =[]; for ( let i= num; i>0;i){ if (i=7=0){ arr.push(i); f } Your friend is working on a function called Console. log(multiplesofseven(85)); which returns an array containing all console. log( multiplesofseven(15)); integers below that number that are console. log(multiplesofseven(7)); multiples of seven (for example: 7,14,21, Console. log (multiplesofseven(1)): etc...). The array should be ordered from smallest to highest. Unfortunately, the code is not working correctly. Help them fix it! Did you find this lesson helpful
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
