Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function circleArea(argument) {
- if (typeof argument === 'number') {
- console.log(`${(Math.PI * argument * argument).toFixed(2)}`);
- } else {
- console.log(`We can not calculate the circle area, because we receive a ${typeof argument}.`);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement