function bonusTime(salary, bonus) {
if (bonus = true) { return "£" + salary * 10;
} else {return "£" + salary;}
}
bonusTime(10000, false);
So I want this function to return the salary * 10 plus the £ sign if the second parameter(value) is true. If the second parameter(value) is false then it should return £ plus the original number, in this case it should return £10000. It keeps returning £100000. It works fine if you pass bonusTime(10000, true);.