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;
    • }
Code
Diff
  • const reverseStr = str => [...str].reverse().join('');
    • const reverseStr = str => str.split('').reverse().join('');
    • const reverseStr = str => [...str].reverse().join('');