pastebin

Paste Search Dynamic
Recent pastes
circumference
  1. function circumference(r) {
  2.   if (Number.isNaN(Number.parseFloat(r))) {
  3.     return 0;
  4.   }
  5.   return parseFloat(r) * 2.0 * Math.PI ;
  6. }
  7. console.log(circumference('3.567abcdefgh'));
  8. console.log(circumference('abcdefghr'));
  9.  
Parsed in 0.004 seconds