//declare variable;
var balance = 10500;
var cameraOn = true;
var amount = steal(balance, 1250);
//function;
function steal(balance, amount) {
cameraOn = false;
if (amount < balance) {
balance = balance - amount;
}
return balance; //
}
console.log(amount);