Race Result Details | 
      
    
| Racer | Aaron (ron1215) | 
| Race Number | 1 | 
| Date | Wed, 17 Jul 2024 15:57:57 | 
| Universe | code | 
| Speed | 
          35 WPM
          
             Try to beat?
          
         | 
      
| Accuracy | 93.1% | 
| Rank | 1st place (out of 2) | 
Text typed:
| 
           function calculateArea(width, height) {
  try {
    var area = width * height;
    if (!isNaN(area)) {
      return area;
    } else {
      throw new Error('calculateArea() received invalid number');
    }
  } catch(e) { 
    console.log(e.name + ' ' + e.message);
    return 'We were unable to calculate the area.';
  }
} 
          — (other)
          by http://www.javascriptbook.com
          (see stats)
         | 
      
