const numMinusSeven = function(num) { //let youGoodBro = []; let count = 0 ; while (num > 0) { num -= 7; count ++; // youGoodBro.push(num); } return count; }
- const numMinusSeven = function(num) {
let youGoodBro = [];- //let youGoodBro = [];
- let count = 0 ;
- while (num > 0) {
- num -= 7;
youGoodBro.push(num);- count ++;
- // youGoodBro.push(num);
- }
return youGoodBro.length;- return count;
- }