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 |
---|---|---|---|
24 | 2024-04-05 11:29:20 | 40.71 | 96% |
16 | 2024-03-13 06:23:04 | 39.67 | 95.4% |
10 | 2024-02-28 14:59:16 | 35.48 | 95.6% |