DEV Community

Discussion on: Daily Challenge #138 - Do I get a Bonus?

Collapse
 
yechielk profile image
Yechiel Kalmenson • Edited

Ruby:

def total_salary(base_salary, getting_bonus)
    "$#{getting_bonus ? (base_salary * 10).to_s : base_salary.to_s}"
end