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