DEV Community

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

Collapse
 
nickyoung profile image
Nick Young • Edited

Untested PHP attempt:

function get_salary( $salary, $bonus )  {
    return '$' . ( $bonus ? $salary * 10 : $salary );
}