Finished second exercise
This commit is contained in:
		
							parent
							
								
									801004c680
								
							
						
					
					
						commit
						1e55ec634b
					
				| 
						 | 
					@ -1,5 +1,9 @@
 | 
				
			||||||
const repeatString = function() {
 | 
					const repeatString = function(string, repeats) {
 | 
				
			||||||
 | 
					    output_str = '';
 | 
				
			||||||
 | 
					    for (i = 0; i < repeats; i++) {
 | 
				
			||||||
 | 
					        output_str = output_str + string;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return output_str;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Do not edit below this line
 | 
					// Do not edit below this line
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue