subtraction added to calc app
This commit is contained in:
		
							parent
							
								
									c39aa9e957
								
							
						
					
					
						commit
						48f2947880
					
				@ -12,3 +12,7 @@ let op = prompt("What operation? ");
 | 
			
		||||
if (op == "+") {
 | 
			
		||||
	console.log(Number(c) + Number(d));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if (op == "-") {
 | 
			
		||||
	console.log(Number(c) - Number(d));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user