Fix the for loop
Changing the for loop's condition so that it can fit the tests
This commit is contained in:
		
							parent
							
								
									db998d7279
								
							
						
					
					
						commit
						e2738642a7
					
				| 
						 | 
				
			
			@ -7,7 +7,7 @@ const sumAll = function(min, max) {
 | 
			
		|||
    max = temp;
 | 
			
		||||
  }
 | 
			
		||||
  let sum = 0;
 | 
			
		||||
  for (let i = min; i < max + 1; i++) {
 | 
			
		||||
  for (let i = min; i <= max + 1; i++) {
 | 
			
		||||
    sum += i;
 | 
			
		||||
  }
 | 
			
		||||
  return sum;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue