DEV Community

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

Collapse
 
rehmatfalcon profile image
Kushal Niroula

JS Quick and dirty :)

function salary(salary, bonus) {
    return ${bonus? salary * 10 : salary}`;
}