changed right name this time
This commit is contained in:
		
							parent
							
								
									10199f35a9
								
							
						
					
					
						commit
						db4255dc92
					
				| 
						 | 
				
			
			@ -16,12 +16,12 @@ const multiply = function(array) {
 | 
			
		|||
      : 0;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const altPower = function(a, b) {
 | 
			
		||||
const power = function(a, b) {
 | 
			
		||||
  return Math.pow(a, b);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
//alternate solution using Exponentiation opertator
 | 
			
		||||
const power = function(a, b) {
 | 
			
		||||
const altPower = function(a, b) {
 | 
			
		||||
  return a ** b;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue