Closed RazvanBugoi closed 4 years ago
https://www.codewars.com/kata/58e4fbd63258cefa4100002c/train/javascript
function pizzaPrice(diameter, price) { let output = price / (Math.PI * (Math.pow(diameter/2, 2))); return typeof diameter == 'number' && typeof price == 'number' ? Number(output.toFixed(2)) : 0; }
https://www.codewars.com/kata/58e4fbd63258cefa4100002c/train/javascript