Update calculator/calculator.js
accepted Co-authored-by: Michael Frank <mfra109@gmail.com>
This commit is contained in:
		
							parent
							
								
									db4255dc92
								
							
						
					
					
						commit
						d091aef25d
					
				| 
						 | 
				
			
			@ -20,7 +20,7 @@ const power = function(a, b) {
 | 
			
		|||
  return Math.pow(a, b);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
//alternate solution using Exponentiation opertator
 | 
			
		||||
//alternate solution using the Exponentiation operator
 | 
			
		||||
const altPower = function(a, b) {
 | 
			
		||||
  return a ** b;
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue