function numMinusSeven(num) { const result = []; for (let i = num; i > 0; i -= 7) { result.push(i - 7); } return result.length; }
- function numMinusSeven(num) {
let sssss = []while (num > 0) {num -= 7sssss.push(num)}return sssss.length}- const result = [];
- for (let i = num; i > 0; i -= 7) {
- result.push(i - 7);
- }
- return result.length;
- }