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 |
---|---|---|---|
33 | 2024-09-15 06:35:32 | 34.29 | 93.8% |
30 | 2024-09-14 16:20:24 | 31.79 | 95.1% |