Ad
Code
Diff
  • function numMinusSeven(num) {
        let count = 0
        while (num > 0) {
            num -= 7
            count++
        }
        return count
    }
    
    • function numMinusSeven(num) {
    • let ss = []
    • let count = 0
    • while (num > 0) {
    • num -= 7
    • ss.push(num)
    • count++
    • }
    • return ss.length
    • return count
    • }