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.'; } }
Game | Time | WPM | Accuracy |
---|---|---|---|
14 | 2024-03-02 06:55:58 | 37.65 | 94.9% |
6 | 2024-03-01 15:03:38 | 39.37 | 95.9% |