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 |
---|---|---|---|
2 | 2024-09-19 04:25:39 | 38.77 | 94.8% |
1 | 2024-09-19 04:23:55 | 34.25 | 92.5% |